pub struct ReplaySnapshotBuilder { /* private fields */ }Expand description
Builder for ReplaySnapshot.
Implementations§
Source§impl ReplaySnapshotBuilder
impl ReplaySnapshotBuilder
Sourcepub fn snapshot_id<VALUE: Into<SnapshotId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn snapshot_id<VALUE: Into<SnapshotId>>( &mut self, value: VALUE, ) -> &mut Self
The id of the layer snapshot.
Sourcepub fn from_step<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn from_step<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The first step to replay from (replay from the very start if not specified).
Sourcepub fn to_step<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn to_step<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The last step to replay to (replay till the end if not specified).
Sourcepub fn scale<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn scale<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
The scale to apply while replaying (defaults to 1).
Sourcepub fn build(&self) -> Result<ReplaySnapshot, ReplaySnapshotBuilderError>
pub fn build(&self) -> Result<ReplaySnapshot, ReplaySnapshotBuilderError>
Trait Implementations§
Source§impl Clone for ReplaySnapshotBuilder
impl Clone for ReplaySnapshotBuilder
Source§fn clone(&self) -> ReplaySnapshotBuilder
fn clone(&self) -> ReplaySnapshotBuilder
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 ReplaySnapshotBuilder
impl RefUnwindSafe for ReplaySnapshotBuilder
impl Send for ReplaySnapshotBuilder
impl Sync for ReplaySnapshotBuilder
impl Unpin for ReplaySnapshotBuilder
impl UnsafeUnpin for ReplaySnapshotBuilder
impl UnwindSafe for ReplaySnapshotBuilder
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