pub struct StateSnapshot<S> {
pub state: S,
pub checkpoint: Checkpoint,
pub metadata: CheckpointMetadata,
pub config: Config,
}Expand description
A snapshot of graph state at a specific checkpoint.
This includes both the checkpoint data and the deserialized state.
Fields§
§state: SThe state at this snapshot
checkpoint: CheckpointThe checkpoint
metadata: CheckpointMetadataMetadata
config: ConfigConfiguration
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for StateSnapshot<S>
impl<S: Debug> Debug for StateSnapshot<S>
Source§impl<'de, S> Deserialize<'de> for StateSnapshot<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for StateSnapshot<S>where
S: Deserialize<'de>,
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<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