pub trait SnapshotCheckpointer: Send {
// Required method
fn save_progress<'life0, 'life1, 'async_trait>(
&'life0 mut self,
checkpoint: &'life1 InterleavedSnapshotCheckpoint,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Receives resumable snapshot checkpoints emitted per chunk.
Required Methods§
Sourcefn save_progress<'life0, 'life1, 'async_trait>(
&'life0 mut self,
checkpoint: &'life1 InterleavedSnapshotCheckpoint,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_progress<'life0, 'life1, 'async_trait>(
&'life0 mut self,
checkpoint: &'life1 InterleavedSnapshotCheckpoint,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persist progress made so far. Called after each chunk is durably applied to the sink and before the corresponding change-log data is freed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".