TransactionInterceptor

Trait TransactionInterceptor 

Source
pub trait TransactionInterceptor<CT: CommandTransaction> {
    // Required methods
    fn pre_commit<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn post_commit<'life0, 'async_trait>(
        &'life0 mut self,
        id: TransactionId,
        version: CommitVersion,
        changes: TransactionalDefChanges,
        row_changes: Vec<RowChange>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn pre_commit<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Intercept pre-commit operations

Source

fn post_commit<'life0, 'async_trait>( &'life0 mut self, id: TransactionId, version: CommitVersion, changes: TransactionalDefChanges, row_changes: Vec<RowChange>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Intercept post-commit operations

Implementors§