pub trait Middleware: Send + Sync {
    // Provided method
    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: Request,
        next: Next<'life1>
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

source

fn handle<'life0, 'life1, 'async_trait>( &'life0 self, request: Request, next: Next<'life1> ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§