pub struct RuntimeState { /* private fields */ }Expand description
Opaque cloneable continuation state produced by Runtime::snapshot.
The Rust layout is private, but its Serde representation is a versioned save contract. It contains no outbox effects: host-applied signals and commands are never replayed by a restore.
Implementations§
Source§impl RuntimeState
impl RuntimeState
Sourcepub const fn format_version(&self) -> u32
pub const fn format_version(&self) -> u32
Snapshot format version carried by this state.
Sourcepub const fn fingerprint(&self) -> u64
pub const fn fingerprint(&self) -> u64
Deterministic fingerprint of the immutable runtime this state requires.
Sourcepub const fn numeric_path(&self) -> NumericPath
pub const fn numeric_path(&self) -> NumericPath
Numeric representation selected when this checkpoint was captured.
Trait Implementations§
Source§impl Clone for RuntimeState
impl Clone for RuntimeState
Source§fn clone(&self) -> RuntimeState
fn clone(&self) -> RuntimeState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RuntimeState
impl Debug for RuntimeState
Source§impl<'de> Deserialize<'de> for RuntimeState
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RuntimeState
Available on crate feature
serde only.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
Auto Trait Implementations§
impl Freeze for RuntimeState
impl RefUnwindSafe for RuntimeState
impl Send for RuntimeState
impl Sync for RuntimeState
impl Unpin for RuntimeState
impl UnsafeUnpin for RuntimeState
impl UnwindSafe for RuntimeState
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