Trait viz_core::Handler [−][src]
pub trait Handler: Send + Sync + 'static { fn call<'a>(&'a self, _: &'a mut Context) -> BoxFuture<'a, Result>; fn clone_handler(&self) -> Box<dyn Handler>; }
Expand description
A handler within the given Context.
Required methods
Invokes the handler within the given Context.
fn clone_handler(&self) -> Box<dyn Handler>
fn clone_handler(&self) -> Box<dyn Handler>
Clones the handler to boxed.