pub trait CheckpointStorage: Send + Sync {
// Required methods
fn save(&self, checkpoint: &Checkpoint, name: &str) -> Result<()>;
fn load(&self, name: &str) -> Result<Checkpoint>;
fn list(&self) -> Result<Vec<String>>;
fn delete(&self, name: &str) -> Result<()>;
fn exists(&self, name: &str) -> bool;
}Expand description
Trait for checkpoint storage backends.
Required Methods§
Sourcefn save(&self, checkpoint: &Checkpoint, name: &str) -> Result<()>
fn save(&self, checkpoint: &Checkpoint, name: &str) -> Result<()>
Save a checkpoint with the given name.
Sourcefn load(&self, name: &str) -> Result<Checkpoint>
fn load(&self, name: &str) -> Result<Checkpoint>
Load a checkpoint by name.