pub trait CheckpointStore: Send + Sync {
// Required methods
fn get_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
shard_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn save_checkpoint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
shard_id: &'life1 str,
sequence_number: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}
Expand description
Trait for checkpoint storage implementations
Required Methods§
sourcefn get_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
shard_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
shard_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Retrieve the checkpoint for a given shard
sourcefn save_checkpoint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
shard_id: &'life1 str,
sequence_number: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_checkpoint<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
shard_id: &'life1 str,
sequence_number: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Save a checkpoint for a given shard