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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§