Trait Interceptor

Source
pub trait Interceptor {
    // Provided methods
    fn before_execute(
        &self,
        execute_query: &mut Vec<String>,
        context: &mut QueryContext,
    ) { ... }
    fn before_execute_async<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        execute_query: &'life1 mut Vec<String>,
        context: &'life2 mut QueryContext,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn after_execute(&self, result: &mut String) { ... }
    fn after_execute_async<'life0, 'life1, 'async_trait>(
        &'life0 self,
        result: &'life1 mut String,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

Source

fn before_execute( &self, execute_query: &mut Vec<String>, context: &mut QueryContext, )

Source

fn before_execute_async<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, execute_query: &'life1 mut Vec<String>, context: &'life2 mut QueryContext, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn after_execute(&self, result: &mut String)

Source

fn after_execute_async<'life0, 'life1, 'async_trait>( &'life0 self, result: &'life1 mut String, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§