pub struct ProfileSnapshotParams {
pub snapshot_id: SnapshotId,
pub min_repeat_count: Option<i64>,
pub min_duration: Option<f64>,
pub clip_rect: Option<Rect>,
}Fields§
§snapshot_id: SnapshotIdThe id of the layer snapshot.
min_repeat_count: Option<i64>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.
Implementations§
Source§impl ProfileSnapshotParams
impl ProfileSnapshotParams
pub fn new(snapshot_id: impl Into<SnapshotId>) -> Self
Trait Implementations§
Source§impl Clone for ProfileSnapshotParams
impl Clone for ProfileSnapshotParams
Source§fn clone(&self) -> ProfileSnapshotParams
fn clone(&self) -> ProfileSnapshotParams
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 ProfileSnapshotParams
impl Debug for ProfileSnapshotParams
Source§impl<'de> Deserialize<'de> for ProfileSnapshotParams
impl<'de> Deserialize<'de> for ProfileSnapshotParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProfileSnapshotParams
impl PartialEq for ProfileSnapshotParams
Source§impl Serialize for ProfileSnapshotParams
impl Serialize for ProfileSnapshotParams
impl StructuralPartialEq for ProfileSnapshotParams
Auto Trait Implementations§
impl Freeze for ProfileSnapshotParams
impl RefUnwindSafe for ProfileSnapshotParams
impl Send for ProfileSnapshotParams
impl Sync for ProfileSnapshotParams
impl Unpin for ProfileSnapshotParams
impl UnsafeUnpin for ProfileSnapshotParams
impl UnwindSafe for ProfileSnapshotParams
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