pub struct CheckpointData<S: State> {
pub state: S,
pub next_nodes: Vec<String>,
pub step: u32,
pub interrupted_node: Option<String>,
pub phase_state: PhaseStateStore,
pub checkpoint_id: Option<String>,
}Expand description
Internal wrapper for checkpoint serialization.
Bincode-serialized into the opaque bytes stored by Checkpointer.
The checkpointer sees bytes; this struct gives them meaning.
Fields§
§state: SFull state at the checkpoint.
next_nodes: Vec<String>Which nodes are scheduled to run next.
step: u32Which superstep this checkpoint was taken at.
interrupted_node: Option<String>Which node was interrupted (if this checkpoint is from an interrupt).
Used by resume() to validate the resume target.
phase_state: PhaseStateStoreSerialized phase state for nodes using the interrupt/phase system. Survives checkpoint serialization so phases resume correctly.
checkpoint_id: Option<String>The checkpoint ID this data was loaded from (for parent lineage). Not serialized — set by the loading code.
Trait Implementations§
Source§impl<'de, S: State> Deserialize<'de> for CheckpointData<S>
impl<'de, S: State> Deserialize<'de> for CheckpointData<S>
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 CheckpointData<S>where
S: Freeze,
impl<S> RefUnwindSafe for CheckpointData<S>where
S: RefUnwindSafe,
impl<S> Send for CheckpointData<S>
impl<S> Sync for CheckpointData<S>
impl<S> Unpin for CheckpointData<S>where
S: Unpin,
impl<S> UnsafeUnpin for CheckpointData<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for CheckpointData<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