Trait Restore

Source
pub trait Restore<FE: ThreadSafe + Clone>: Persist<FE> {
    // Required method
    fn restore<'life0, 'life1, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        backup: &'life1 Self,
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Restore a persistent state from a backup.

Required Methods§

Source

fn restore<'life0, 'life1, 'async_trait>( &'life0 self, txn_id: TxnId, backup: &'life1 Self, ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Restore this persistent state from a backup.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§