Trait viz::prelude::HandlerCamp[][src]

pub trait HandlerCamp<'h, Args>: 'static + Clone {
    type Output: Into<Response>;
    type Future: 'h + Future + Send;
    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