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