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>> + Send + 'a, 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.
fn clone_handler(&self) -> Box<dyn Handler + 'static, Global>
fn clone_handler(&self) -> Box<dyn Handler + 'static, Global>
Clones the handler to boxed.