Skip to main content

SqlTransactionTransport

Trait SqlTransactionTransport 

Source
pub trait SqlTransactionTransport: SqlTransport {
    type Tx<'a>: SqlTransport<Error = Self::Error> + SqlTransaction<Error = Self::Error> + Send + Sync + 'a
       where Self: 'a;

    // Required method
    fn begin_sql(
        &self,
    ) -> impl Future<Output = Result<Self::Tx<'_>, Self::Error>> + Send;
}

Required Associated Types§

Source

type Tx<'a>: SqlTransport<Error = Self::Error> + SqlTransaction<Error = Self::Error> + Send + Sync + 'a where Self: 'a

Required Methods§

Source

fn begin_sql( &self, ) -> impl Future<Output = Result<Self::Tx<'_>, Self::Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§