TableInterceptor

Trait TableInterceptor 

Source
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§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§