pub struct StateSnapshot<S>where
S: State,{
pub values: S,
pub next: Vec<String>,
pub config: RunnableConfig,
pub metadata: CheckpointMetadata,
pub created_at: String,
pub parent_config: Option<RunnableConfig>,
pub tasks: Vec<PregelTaskInfo>,
}Expand description
State snapshot at a specific checkpoint
Represents the deserialized, fully-hydrated execution state at a checkpoint.
§Type Parameters
S- State type implementing thecrate::Statetrait
Fields§
§values: SThe complete state values
next: Vec<String>Next nodes to execute
config: RunnableConfigConfiguration with checkpoint_id for time-travel
metadata: CheckpointMetadataCheckpoint metadata
created_at: StringISO 8601 creation timestamp
parent_config: Option<RunnableConfig>Parent checkpoint configuration
tasks: Vec<PregelTaskInfo>Task information for current superstep
Trait Implementations§
Source§impl<S> Clone for StateSnapshot<S>
impl<S> 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> !RefUnwindSafe for StateSnapshot<S>
impl<S> !UnwindSafe for StateSnapshot<S>
impl<S> Freeze for StateSnapshot<S>where
S: Freeze,
impl<S> Send for StateSnapshot<S>
impl<S> Sync for StateSnapshot<S>
impl<S> Unpin for StateSnapshot<S>where
S: Unpin,
impl<S> UnsafeUnpin for StateSnapshot<S>where
S: UnsafeUnpin,
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