MiddlewareArgument

Trait MiddlewareArgument 

Source
pub trait MiddlewareArgument<A>:
    Send
    + Sync
    + 'static {
    // Required method
    fn call(
        &self,
        request: Request,
        next: Next,
    ) -> BoxFuture<'static, Result<Response>>;
}

Required Methods§

Source

fn call( &self, request: Request, next: Next, ) -> BoxFuture<'static, Result<Response>>

Implementors§

Source§

impl<A0, A1, A2, A3, F, Fut> MiddlewareArgument<(A0, A1, A2, A3)> for F
where A0: ExtractFromRequest + Send + Sync, A1: ExtractFromRequest + Send + Sync, A2: ExtractFromRequest + Send + Sync, A3: ExtractFromRequest + Send + Sync, F: Fn(A0, A1, A2, A3, Next) -> Fut + Sync + Send + Clone + 'static, Fut: Future<Output = Result<Response>> + Send + 'static,

Source§

impl<A0, A1, A2, F, Fut> MiddlewareArgument<(A0, A1, A2)> for F
where A0: ExtractFromRequest + Send + Sync, A1: ExtractFromRequest + Send + Sync, A2: ExtractFromRequest + Send + Sync, F: Fn(A0, A1, A2, Next) -> Fut + Sync + Send + Clone + 'static, Fut: Future<Output = Result<Response>> + Send + 'static,

Source§

impl<A0, A1, F, Fut> MiddlewareArgument<(A0, A1)> for F
where A0: ExtractFromRequest + Send + Sync, A1: ExtractFromRequest + Send + Sync, F: Fn(A0, A1, Next) -> Fut + Sync + Send + Clone + 'static, Fut: Future<Output = Result<Response>> + Send + 'static,

Source§

impl<A0, F, Fut> MiddlewareArgument<(A0,)> for F
where A0: ExtractFromRequest + Send + Sync, F: Fn(A0, Next) -> Fut + Sync + Send + Clone + 'static, Fut: Future<Output = Result<Response>> + Send + 'static,