Trait SnapshotStore
Source pub trait SnapshotStore:
Send
+ Sync
+ 'static {
// Required methods
fn save<'life0, 'async_trait>(
&'life0 self,
meta: SnapshotMetadata,
payload: Vec<u8>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
persistence_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Option<(SnapshotMetadata, Vec<u8>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
persistence_id: &'life1 str,
to_sequence_nr: u64,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}