pub trait CheckpointStore: Send {
// Required methods
fn load(
&mut self,
job_id: &str,
) -> impl Future<Output = Result<Option<Checkpoint>>> + Send;
fn save(
&mut self,
cp: &Checkpoint,
) -> impl Future<Output = Result<()>> + Send;
}Expand description
Persists Checkpoints. The PostgreSQL implementation stores them in the target.
Required Methods§
fn load( &mut self, job_id: &str, ) -> impl Future<Output = Result<Option<Checkpoint>>> + Send
fn save(&mut self, cp: &Checkpoint) -> impl Future<Output = Result<()>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".