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