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§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".