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; #[must_use] 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; #[must_use] 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; }
Common transaction context properties.
Required methods
fn id(&self) -> &TxnId[src]
The TxnId of this transaction context.
fn context(&self) -> &D[src]
Borrow the fs::Dir of this transaction context.
fn into_context(self) -> D[src]
Consume this Txn and return its fs::Dir.
#[must_use]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, [src]
#[must_use]
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,
Return a transaction subcontext with its own fs::Dir.
#[must_use]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, [src]
#[must_use]
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,
Return a transaction subcontext with its own unique fs::Dir.