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§
type Item
type Error: TransactError
type Future: Future<Output = (Self, Transaction, Result<Self::Item, Self::Error>)>
Required Methods§
fn transact(self, trx: Transaction) -> Self::Future
Object Safety§
This trait is not object safe.