Trait viz_core::HandlerCamp[][src]

pub trait HandlerCamp<'h, Args>: Clone + 'static {
    type Output: Into<Response>;
    type Future: Future<Output = Self::Output> + Send + 'h;
    fn call(&'h self, cx: &'h mut Context, args: Args) -> Self::Future;
}

Associated Types

type Output: Into<Response>[src]

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

Loading content...

Required methods

fn call(&'h self, cx: &'h mut Context, args: Args) -> Self::Future[src]

Loading content...

Implementors

impl<'h, Func, A, B, C, D, E, F, G, H, I, J, K, L, R> HandlerCamp<'h, (A, B, C, D, E, F, G, H, I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, A, B, C, D, E, F, G, H, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, B, C, D, E, F, G, H, I, J, K, L, R> HandlerCamp<'h, (B, C, D, E, F, G, H, I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, B, C, D, E, F, G, H, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, C, D, E, F, G, H, I, J, K, L, R> HandlerCamp<'h, (C, D, E, F, G, H, I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, C, D, E, F, G, H, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, D, E, F, G, H, I, J, K, L, R> HandlerCamp<'h, (D, E, F, G, H, I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, D, E, F, G, H, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, E, F, G, H, I, J, K, L, R> HandlerCamp<'h, (E, F, G, H, I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, E, F, G, H, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, F, G, H, I, J, K, L, R> HandlerCamp<'h, (F, G, H, I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, F, G, H, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, G, H, I, J, K, L, R> HandlerCamp<'h, (G, H, I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, G, H, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, H, I, J, K, L, R> HandlerCamp<'h, (H, I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, H, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, I, J, K, L, R> HandlerCamp<'h, (I, J, K, L)> for Func where
    Func: Fn(&'h mut Context, I, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, J, K, L, R> HandlerCamp<'h, (J, K, L)> for Func where
    Func: Fn(&'h mut Context, J, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, K, L, R> HandlerCamp<'h, (K, L)> for Func where
    Func: Fn(&'h mut Context, K, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

impl<'h, Func, L, R> HandlerCamp<'h, (L,)> for Func where
    Func: Fn(&'h mut Context, L) -> R + Clone + 'static,
    R: Future + Send + 'h,
    R::Output: Into<Response>, 
[src]

type Output = R::Output

type Future = R

Loading content...