#[non_exhaustive]pub enum CheckpointPhase {
Idle {
state: ConversationState,
},
Paused {
outcome: ConversationOutcome,
work: WorkRef,
},
}Expand description
The saved conversation phase: the idle state, or the complete paused outcome plus the work ref it belongs to.
The Paused arm is deliberately the complete outcome (the same shape the
in-memory slot holds), so the enum is as large as that outcome. Boxing it
would add indirection for a value there is exactly one of, matching the
accepted trade-off on the session’s Slot.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Idle
The session was idle: the state (with its committed history) is the whole conversation payload; its active slot is empty.
Fields
state: ConversationStateThe idle conversation state.
Paused
The session held a paused work: the complete outcome (its own state, the paused result, and the continuation) is the whole payload. No second state copy is saved beside it.
Fields
outcome: ConversationOutcomeThe complete paused outcome, including its state and continuation.
Trait Implementations§
Source§impl Clone for CheckpointPhase
impl Clone for CheckpointPhase
Source§fn clone(&self) -> CheckpointPhase
fn clone(&self) -> CheckpointPhase
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more