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§
Sourcefn 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 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
Sourcefn 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,
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