pub trait HandlerCtxArgument<A>: Send + Sync + 'static {
    // Required method
    fn call(&self, ctx: Ctx) -> BoxFuture<'static, Result<Response>>;
}

Required Methods§

source

fn call(&self, ctx: Ctx) -> BoxFuture<'static, Result<Response>>

Implementors§

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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