pub struct ReplaySnapshotParams {
pub snapshot_id: SnapshotId,
pub from_step: Option<i64>,
pub to_step: Option<i64>,
pub scale: Option<f64>,
}Expand description
Replays the layer snapshot and returns the resulting bitmap.
Parameters of LayerTree.replaySnapshot.
Fields§
§snapshot_id: SnapshotIdThe id of the layer snapshot.
from_step: Option<i64>The first step to replay from (replay from the very start if not specified).
to_step: Option<i64>The last step to replay to (replay till the end if not specified).
scale: Option<f64>The scale to apply while replaying (defaults to 1).
Trait Implementations§
Source§impl Clone for ReplaySnapshotParams
impl Clone for ReplaySnapshotParams
Source§impl Command for ReplaySnapshotParams
impl Command for ReplaySnapshotParams
Source§impl Debug for ReplaySnapshotParams
impl Debug for ReplaySnapshotParams
Source§impl Default for ReplaySnapshotParams
impl Default for ReplaySnapshotParams
Source§impl<'de> Deserialize<'de> for ReplaySnapshotParams
impl<'de> Deserialize<'de> for ReplaySnapshotParams
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 ReplaySnapshotParams
impl PartialEq for ReplaySnapshotParams
Source§impl Serialize for ReplaySnapshotParams
impl Serialize for ReplaySnapshotParams
impl StructuralPartialEq for ReplaySnapshotParams
Auto Trait Implementations§
impl Forget for ReplaySnapshotParams
impl Freeze for ReplaySnapshotParams
impl RefUnwindSafe for ReplaySnapshotParams
impl Send for ReplaySnapshotParams
impl Sync for ReplaySnapshotParams
impl Unpin for ReplaySnapshotParams
impl UnsafeUnpin for ReplaySnapshotParams
impl UnwindSafe for ReplaySnapshotParams
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