TxConn

Trait TxConn 

Source
pub trait TxConn {
    type Idle;

    // Required methods
    fn commit(
        self,
    ) -> impl Future<Output = Result<Self::Idle, SqlMiddlewareDbError>>;
    fn rollback(
        self,
    ) -> impl Future<Output = Result<Self::Idle, SqlMiddlewareDbError>>;
}
Expand description

Transaction state that can return to idle.

Required Associated Types§

Required Methods§

Source

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

Source

fn rollback( self, ) -> impl Future<Output = Result<Self::Idle, 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§