Trait tc_transact::fs::Restore [−][src]
pub trait Restore<D: Dir, T: Transaction<D>>: Sized { #[must_use] fn restore<'life0, 'life1, 'async_trait>(
&'life0 self,
backup: &'life1 Self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; }
Expand description
Defines how to restore persistent state from backup.
Required methods
#[must_use]fn restore<'life0, 'life1, 'async_trait>(
&'life0 self,
backup: &'life1 Self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn restore<'life0, 'life1, 'async_trait>(&'life0 self,
backup: &'life1 Self,
txn_id: TxnId
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,