Trait viz_core::HandlerBase[][src]

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

Associated Types

type Output: Into<Response>[src]

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

Loading content...

Required methods

fn call(&self, args: Args) -> Self::Future[src]

Loading content...

Implementors

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

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

type Output = R::Output

type Future = R

Loading content...