pub trait Resume {
// Required method
fn resume(
&self,
checkpoint: &Checkpoint,
) -> Result<ResumeReport, WarmSwapError>;
}Expand description
Resumes the conversation from the last committed turn after the swap.
Given the drained Checkpoint, it replays from the last committed turn and
re-drives any paused HITL approval — the same reconstruct the control plane
runs on a reconnect. It restarts from exactly the checkpoint turn, so no
committed turn is dropped and none is replayed twice.
Required Methods§
Sourcefn resume(&self, checkpoint: &Checkpoint) -> Result<ResumeReport, WarmSwapError>
fn resume(&self, checkpoint: &Checkpoint) -> Result<ResumeReport, WarmSwapError>
Resume from checkpoint and report where it restarted.
§Errors
Returns WarmSwapError::Resume when the conversation cannot be resumed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".