pub trait CheckpointStorage: Send + Sync {
// Required methods
fn store(&self, checkpoint: &Checkpoint) -> Result<()>;
fn load(&self, checkpoint_id: u64) -> Result<Option<Checkpoint>>;
fn delete(&self, checkpoint_id: u64) -> Result<()>;
fn list(&self) -> Result<Vec<u64>>;
fn latest(&self) -> Result<Option<u64>>;
}Expand description
Checkpoint storage.
Required Methods§
Sourcefn store(&self, checkpoint: &Checkpoint) -> Result<()>
fn store(&self, checkpoint: &Checkpoint) -> Result<()>
Store a checkpoint.