pub trait Transaction<D: Dir>: Clone + Sized + Send + Sync + 'static {
    fn id(&self) -> &TxnId;
    fn context(&self) -> &D;
    fn subcontext<'life0, 'async_trait>(
        &'life0 self,
        id: Id
    ) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn subcontext_unique<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; }
Expand description

Common transaction context properties.

Required Methods§

The TxnId of this transaction context.

Borrow the fs::Dir of this transaction context.

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

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

Implementors§