DbTransactionFinalizer

Trait DbTransactionFinalizer 

Source
pub trait DbTransactionFinalizer {
    type Err: Into<Error> + From<Error>;

    // Required methods
    fn commit<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn rollback<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Commit and Rollback

Required Associated Types§

Source

type Err: Into<Error> + From<Error>

Mint Signature Database Error

Required Methods§

Source

fn commit<'async_trait>( self: Box<Self>, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait,

Commits all the changes into the database

Source

fn rollback<'async_trait>( self: Box<Self>, ) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait,

Rollbacks the write transaction

Implementors§