Trait tc_transact::Transaction [−][src]
pub trait Transaction<D: Dir>: Clone + Sized + Send + Sync + 'static {
fn id(&self) -> &TxnId;
fn context(&self) -> &D;
fn into_context(self) -> D;
fn subcontext<'life0, 'async_trait>(
&'life0 self,
id: Id
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn subcontext_tmp<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Common transaction context properties.
Required methods
fn into_context(self) -> D
fn into_context(self) -> D
Consume this Txn
and return its fs::Dir
.
Return a transaction subcontext with its own fs::Dir
.