BeginTx

Trait BeginTx 

Source
pub trait BeginTx: Sized {
    type Tx: TxConn<Idle = Self>;

    // Required method
    fn begin(
        self,
    ) -> impl Future<Output = Result<Self::Tx, SqlMiddlewareDbError>>;
}
Expand description

Begin a transaction from an idle connection.

Required Associated Types§

Source

type Tx: TxConn<Idle = Self>

Required Methods§

Source

fn begin(self) -> impl Future<Output = Result<Self::Tx, SqlMiddlewareDbError>>

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§