pub struct StateSnapshot<S> {
pub state: S,
pub version: u64,
}Expand description
Point-in-time state snapshot.
Fields§
§state: SCurrent state.
version: u64Monotonic state version.
Trait Implementations§
Source§impl<S: Clone> Clone for StateSnapshot<S>
impl<S: Clone> Clone for StateSnapshot<S>
Source§fn clone(&self) -> StateSnapshot<S>
fn clone(&self) -> StateSnapshot<S>
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 moreAuto Trait Implementations§
impl<S> Freeze for StateSnapshot<S>where
S: Freeze,
impl<S> RefUnwindSafe for StateSnapshot<S>where
S: RefUnwindSafe,
impl<S> Send for StateSnapshot<S>where
S: Send,
impl<S> Sync for StateSnapshot<S>where
S: Sync,
impl<S> Unpin for StateSnapshot<S>where
S: Unpin,
impl<S> UnsafeUnpin for StateSnapshot<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StateSnapshot<S>where
S: UnwindSafe,
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