pub trait TableInterceptor<CT: CommandTransaction> {
// Required methods
fn pre_insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
rn: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn post_insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn pre_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn post_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
old_row: &'life3 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn pre_delete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn post_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
deleted_row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Required Methods§
Sourcefn pre_insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
rn: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn pre_insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
rn: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Intercept table pre-insert operations
Sourcefn post_insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn post_insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Intercept table post-insert operations
Sourcefn pre_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn pre_update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Intercept table pre-update operations
Sourcefn post_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
old_row: &'life3 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn post_update<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
row: &'life2 EncodedValues,
old_row: &'life3 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Intercept table post-update operations
Sourcefn pre_delete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn pre_delete<'life0, 'life1, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Intercept table pre-delete operations
Sourcefn post_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
deleted_row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn post_delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
table: &'life1 TableDef,
id: RowNumber,
deleted_row: &'life2 EncodedValues,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Intercept table post-delete operations