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§
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,
sourcefn max_txn_ops(&self) -> usize
fn max_txn_ops(&self) -> usize
Maximum number of operations permitted in a transaction.