[][src]Trait ntex::web::Handler

pub trait Handler<T, Err>: Clone + 'static where
    Err: ErrorRenderer
{ type Output: Responder<Err>; type Future: Future<Output = Self::Output> + 'static; pub fn call(&self, param: T) -> Self::Future; }

Async fn handler

Associated Types

type Output: Responder<Err>[src]

type Future: Future<Output = Self::Output> + 'static[src]

Loading content...

Required methods

pub fn call(&self, param: T) -> Self::Future[src]

Loading content...

Implementors

impl<F, R, Err> Handler<(), Err> for F where
    F: Fn() -> R + Clone + 'static,
    R: Future + 'static,
    R::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = R

type Output = R::Output

impl<Func, A, B, C, D, E, F, G, H, I, J, Res, Err> Handler<(A, B, C, D, E, F, G, H, I, J), Err> for Func where
    Func: Fn(A, B, C, D, E, F, G, H, I, J) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, B, C, D, E, F, G, H, I, Res, Err> Handler<(A, B, C, D, E, F, G, H, I), Err> for Func where
    Func: Fn(A, B, C, D, E, F, G, H, I) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, B, C, D, E, F, G, H, Res, Err> Handler<(A, B, C, D, E, F, G, H), Err> for Func where
    Func: Fn(A, B, C, D, E, F, G, H) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, B, C, D, E, F, G, Res, Err> Handler<(A, B, C, D, E, F, G), Err> for Func where
    Func: Fn(A, B, C, D, E, F, G) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, B, C, D, E, F, Res, Err> Handler<(A, B, C, D, E, F), Err> for Func where
    Func: Fn(A, B, C, D, E, F) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, B, C, D, E, Res, Err> Handler<(A, B, C, D, E), Err> for Func where
    Func: Fn(A, B, C, D, E) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, B, C, D, Res, Err> Handler<(A, B, C, D), Err> for Func where
    Func: Fn(A, B, C, D) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, B, C, Res, Err> Handler<(A, B, C), Err> for Func where
    Func: Fn(A, B, C) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, B, Res, Err> Handler<(A, B), Err> for Func where
    Func: Fn(A, B) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

impl<Func, A, Res, Err> Handler<(A,), Err> for Func where
    Func: Fn(A) -> Res + Clone + 'static,
    Res: Future + 'static,
    Res::Output: Responder<Err>,
    Err: ErrorRenderer
[src]

type Future = Res

type Output = Res::Output

Loading content...