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;
}
Expand description

A handler within the given Context and Args.

Associated Types

The type of value produced on completion.

Retures a future for handler.

Required methods

Invokes the handler within the given Context and args.

Implementors