Trait viz::prelude::Handler[][src]

pub trait Handler: 'static + Send + Sync {
    fn call(
        &'a self,
        &'a mut Context
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + 'a + Send, Global>>;
fn clone_handler(&self) -> Box<dyn Handler + 'static, Global>; }
Expand description

A handler within the given Context.

Required methods

Invokes the handler within the given Context.

Clones the handler to boxed.

Implementations on Foreign Types

Implementors