pub trait StateStore: Send + Sync {
// Required methods
fn save_checkpoint(&self, checkpoint: Checkpoint) -> Result<()>;
fn load_checkpoint(&self, task_id: &str) -> Result<Option<Checkpoint>>;
fn delete_checkpoint(&self, task_id: &str) -> Result<()>;
fn list_checkpoints(&self) -> Result<Vec<String>>;
}Required Methods§
fn save_checkpoint(&self, checkpoint: Checkpoint) -> Result<()>
fn load_checkpoint(&self, task_id: &str) -> Result<Option<Checkpoint>>
fn delete_checkpoint(&self, task_id: &str) -> Result<()>
fn list_checkpoints(&self) -> Result<Vec<String>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".