common_meta::kv_backend::txn

Trait TxnService

source
pub trait TxnService: Sync + Send {
    type Error: ErrorExt;

    // Provided methods
    fn txn<'life0, 'async_trait>(
        &'life0 self,
        _txn: Txn,
    ) -> Pin<Box<dyn Future<Output = Result<TxnResponse, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn max_txn_ops(&self) -> usize { ... }
}

Required Associated Types§

source

type Error: ErrorExt

Provided Methods§

source

fn txn<'life0, 'async_trait>( &'life0 self, _txn: Txn, ) -> Pin<Box<dyn Future<Output = Result<TxnResponse, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn max_txn_ops(&self) -> usize

Maximum number of operations permitted in a transaction.

Implementors§