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; }
Expand description
A basic handler within the given Args.
Associated Types
Required methods
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,
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>,