pub struct ProfileSnapshotBuilder { /* private fields */ }Expand description
Builder for ProfileSnapshot.
Implementations§
Source§impl ProfileSnapshotBuilder
impl ProfileSnapshotBuilder
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 min_repeat_count<VALUE: Into<JsUInt>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn min_repeat_count<VALUE: Into<JsUInt>>( &mut self, value: VALUE, ) -> &mut Self
The maximum number of times to replay the snapshot (1, if not specified).
Sourcepub fn min_duration<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn min_duration<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
The minimum duration (in seconds) to replay the snapshot.
Sourcepub fn clip_rect<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
pub fn clip_rect<VALUE: Into<Rect>>(&mut self, value: VALUE) -> &mut Self
The clip rectangle to apply when replaying the snapshot.
Sourcepub fn build(&self) -> Result<ProfileSnapshot, ProfileSnapshotBuilderError>
pub fn build(&self) -> Result<ProfileSnapshot, ProfileSnapshotBuilderError>
Trait Implementations§
Source§impl Clone for ProfileSnapshotBuilder
impl Clone for ProfileSnapshotBuilder
Source§fn clone(&self) -> ProfileSnapshotBuilder
fn clone(&self) -> ProfileSnapshotBuilder
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 ProfileSnapshotBuilder
impl RefUnwindSafe for ProfileSnapshotBuilder
impl Send for ProfileSnapshotBuilder
impl Sync for ProfileSnapshotBuilder
impl Unpin for ProfileSnapshotBuilder
impl UnsafeUnpin for ProfileSnapshotBuilder
impl UnwindSafe for ProfileSnapshotBuilder
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