Trait tc_transact::Transaction[][src]

pub trait Transaction<D: Dir>: Sized {
    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]

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]

Return a transaction subcontext with its own unique fs::Dir.

Loading content...

Implementors

Loading content...