pub struct ProfileSnapshotCommandBuilder { /* private fields */ }
Available on crate features
experimental
and LayerTree
and DOM
only.Implementations§
Source§impl ProfileSnapshotCommandBuilder
impl ProfileSnapshotCommandBuilder
Sourcepub fn snapshot_id(&mut self, v: SnapshotId) -> &mut Self
pub fn snapshot_id(&mut self, v: SnapshotId) -> &mut Self
The id of the layer snapshot.
Sourcepub fn min_repeat_count(&mut self, v: u32) -> &mut Self
pub fn min_repeat_count(&mut self, v: u32) -> &mut Self
The maximum number of times to replay the snapshot (1, if not specified).
Sourcepub fn min_duration(&mut self, v: f64) -> &mut Self
pub fn min_duration(&mut self, v: f64) -> &mut Self
The minimum duration (in seconds) to replay the snapshot.
Sourcepub fn clip_rect(&mut self, v: Rect) -> &mut Self
pub fn clip_rect(&mut self, v: Rect) -> &mut Self
The clip rectangle to apply when replaying the snapshot.
pub fn build(&mut self) -> Result<ProfileSnapshotCommand, &'static str>
Trait Implementations§
Source§impl Clone for ProfileSnapshotCommandBuilder
impl Clone for ProfileSnapshotCommandBuilder
Source§fn clone(&self) -> ProfileSnapshotCommandBuilder
fn clone(&self) -> ProfileSnapshotCommandBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ProfileSnapshotCommandBuilder
impl RefUnwindSafe for ProfileSnapshotCommandBuilder
impl Send for ProfileSnapshotCommandBuilder
impl Sync for ProfileSnapshotCommandBuilder
impl Unpin for ProfileSnapshotCommandBuilder
impl UnwindSafe for ProfileSnapshotCommandBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more