Skip to main content

StateStore

Trait StateStore 

Source
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§

Source

fn save_checkpoint(&self, checkpoint: Checkpoint) -> Result<()>

Source

fn load_checkpoint(&self, task_id: &str) -> Result<Option<Checkpoint>>

Source

fn delete_checkpoint(&self, task_id: &str) -> Result<()>

Source

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".

Implementors§