Struct cdp::layer_tree::ReplaySnapshotCommand
[−]
[src]
pub struct ReplaySnapshotCommand<'a> { pub snapshot_id: SnapshotId<'a>, pub from_step: Option<i32>, pub to_step: Option<i32>, pub scale: Option<f64>, }
[Experimental] Replays the layer snapshot and returns the resulting bitmap.
Command LayerTree.replaySnapshot
Domain Module: cdp::layer_tree
Command Struct: cdp::layer_tree::ReplaySnapshotCommand
Response Struct: cdp::layer_tree::ReplaySnapshotResponse
Fields
snapshot_id: SnapshotId<'a>
The id of the layer snapshot.
from_step: Option<i32>
The first step to replay from (replay from the very start if not specified).
to_step: Option<i32>
The last step to replay to (replay till the end if not specified).
scale: Option<f64>
The scale to apply while replaying (defaults to 1).
Trait Implementations
impl<'a> Clone for ReplaySnapshotCommand<'a>
[src]
fn clone(&self) -> ReplaySnapshotCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for ReplaySnapshotCommand<'a>
[src]
impl<'a> PartialEq for ReplaySnapshotCommand<'a>
[src]
fn eq(&self, __arg_0: &ReplaySnapshotCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ReplaySnapshotCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for ReplaySnapshotCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "LayerTree.replaySnapshot"
impl<'a> SerializeCdpCommand for ReplaySnapshotCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for ReplaySnapshotCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,