Trait darpi::RequestMiddleware[][src]

pub trait RequestMiddleware<M> where
    M: 'static + Sync + Send
{ type HandlerArgs: 'static + Sync + Send; type Error: ResponderError; type Type; #[must_use] pub fn call<'life0, 'async_trait>(
        req: &'life0 mut Request<Body>,
        module: Arc<M>,
        ha: Self::HandlerArgs
    ) -> Pin<Box<dyn Future<Output = Result<Self::Type, Self::Error>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

#[must_use]pub fn call<'life0, 'async_trait>(
    req: &'life0 mut Request<Body>,
    module: Arc<M>,
    ha: Self::HandlerArgs
) -> Pin<Box<dyn Future<Output = Result<Self::Type, Self::Error>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...