Skip to main content

RequestInterceptor

Trait RequestInterceptor 

Source
pub trait RequestInterceptor:
    Send
    + Sync
    + 'static {
    // Required methods
    fn pre_execute<'a>(
        &'a self,
        ctx: &'a mut RequestContext,
    ) -> Pin<Box<dyn Future<Output = Result<(), ExecuteError>> + Send + 'a>>;
    fn post_execute<'a>(
        &'a self,
        ctx: &'a ResponseContext,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>;
}

Required Methods§

Source

fn pre_execute<'a>( &'a self, ctx: &'a mut RequestContext, ) -> Pin<Box<dyn Future<Output = Result<(), ExecuteError>> + Send + 'a>>

Source

fn post_execute<'a>( &'a self, ctx: &'a ResponseContext, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>>

Implementors§