Skip to main content

SqlTransaction

Trait SqlTransaction 

Source
pub trait SqlTransaction {
    type Error: Error + Send + Sync + 'static;

    // Required methods
    fn commit_sql(self) -> impl Future<Output = Result<(), Self::Error>> + Send;
    fn rollback_sql(
        self,
    ) -> impl Future<Output = Result<(), Self::Error>> + Send;
}

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn commit_sql(self) -> impl Future<Output = Result<(), Self::Error>> + Send

Source

fn rollback_sql(self) -> impl Future<Output = Result<(), Self::Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§