Struct cdp::layer_tree::ProfileSnapshotCommand
[−]
[src]
pub struct ProfileSnapshotCommand<'a> { pub snapshot_id: SnapshotId<'a>, pub min_repeat_count: Option<i32>, pub min_duration: Option<f64>, pub clip_rect: Option<Rect>, }
[Experimental]
Command LayerTree.profileSnapshot
Domain Module: cdp::layer_tree
Command Struct: cdp::layer_tree::ProfileSnapshotCommand
Response Struct: cdp::layer_tree::ProfileSnapshotResponse
Fields
snapshot_id: SnapshotId<'a>
The id of the layer snapshot.
min_repeat_count: Option<i32>
The maximum number of times to replay the snapshot (1, if not specified).
min_duration: Option<f64>
The minimum duration (in seconds) to replay the snapshot.
clip_rect: Option<Rect>
The clip rectangle to apply when replaying the snapshot.
Trait Implementations
impl<'a> Clone for ProfileSnapshotCommand<'a>
[src]
fn clone(&self) -> ProfileSnapshotCommand<'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 ProfileSnapshotCommand<'a>
[src]
impl<'a> PartialEq for ProfileSnapshotCommand<'a>
[src]
fn eq(&self, __arg_0: &ProfileSnapshotCommand<'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: &ProfileSnapshotCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for ProfileSnapshotCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "LayerTree.profileSnapshot"
impl<'a> SerializeCdpCommand for ProfileSnapshotCommand<'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 ProfileSnapshotCommand<'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>,