pub struct ReplaySnapshotCommandBuilder { /* private fields */ }
Available on crate features
experimental
and LayerTree
and DOM
only.Implementations§
Source§impl ReplaySnapshotCommandBuilder
impl ReplaySnapshotCommandBuilder
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 from_step(&mut self, v: u32) -> &mut Self
pub fn from_step(&mut self, v: u32) -> &mut Self
The first step to replay from (replay from the very start if not specified).
Sourcepub fn to_step(&mut self, v: u32) -> &mut Self
pub fn to_step(&mut self, v: u32) -> &mut Self
The last step to replay to (replay till the end if not specified).
Sourcepub fn scale(&mut self, v: f64) -> &mut Self
pub fn scale(&mut self, v: f64) -> &mut Self
The scale to apply while replaying (defaults to 1).
pub fn build(&mut self) -> Result<ReplaySnapshotCommand, &'static str>
Trait Implementations§
Source§impl Clone for ReplaySnapshotCommandBuilder
impl Clone for ReplaySnapshotCommandBuilder
Source§fn clone(&self) -> ReplaySnapshotCommandBuilder
fn clone(&self) -> ReplaySnapshotCommandBuilder
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 moreSource§impl Debug for ReplaySnapshotCommandBuilder
impl Debug for ReplaySnapshotCommandBuilder
Auto Trait Implementations§
impl Freeze for ReplaySnapshotCommandBuilder
impl RefUnwindSafe for ReplaySnapshotCommandBuilder
impl Send for ReplaySnapshotCommandBuilder
impl Sync for ReplaySnapshotCommandBuilder
impl Unpin for ReplaySnapshotCommandBuilder
impl UnwindSafe for ReplaySnapshotCommandBuilder
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