Trait SnapshotRepository

Source
pub trait SnapshotRepository:
    Sync
    + Send
    + 'static {
    // Required methods
    fn save_snapshot_stream<'life0, 'async_trait>(
        &'life0 self,
        st: SnapshotStream,
        snapshot_index: Index,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn open_snapshot_stream<'life0, 'async_trait>(
        &'life0 self,
        index: Index,
    ) -> Pin<Box<dyn Future<Output = Result<SnapshotStream>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_snapshot<'life0, 'async_trait>(
        &'life0 self,
        index: Index,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature simple only.
Expand description

The repository of the snapshot resources.

Required Methods§

Source

fn save_snapshot_stream<'life0, 'async_trait>( &'life0 self, st: SnapshotStream, snapshot_index: Index, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn open_snapshot_stream<'life0, 'async_trait>( &'life0 self, index: Index, ) -> Pin<Box<dyn Future<Output = Result<SnapshotStream>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_snapshot<'life0, 'async_trait>( &'life0 self, index: Index, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§