foundationdb

Trait DatabaseTransact

source
pub trait DatabaseTransact: Sized {
    type Item;
    type Error: TransactError;
    type Future: Future<Output = (Self, Transaction, Result<Self::Item, Self::Error>)>;

    // Required method
    fn transact(self, trx: Transaction) -> Self::Future;
}

Required Associated Types§

source

type Item

source

type Error: TransactError

source

type Future: Future<Output = (Self, Transaction, Result<Self::Item, Self::Error>)>

Required Methods§

source

fn transact(self, trx: Transaction) -> Self::Future

Object Safety§

This trait is not object safe.

Implementors§