pub trait Recover<FE> {
type Txn: Transaction<FE>;
// Required method
fn recover<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Self::Txn,
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Defines a method to recover the state of this Chain
from a transaction failure.
Required Associated Types§
type Txn: Transaction<FE>
Required Methods§
Sourcefn recover<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Self::Txn,
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recover<'life0, 'life1, 'async_trait>(
&'life0 self,
txn: &'life1 Self::Txn,
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Recover this state after loading, in case the last transaction failed or was interrupted.