Trait viz_core::Handler[][src]

pub trait Handler: Send + Sync + 'static {
    fn call<'a>(&'a self, _: &'a mut Context) -> BoxFuture<'a, Result<Response>>;
fn clone_handler(&self) -> Box<dyn Handler>; }

Required methods

fn call<'a>(&'a self, _: &'a mut Context) -> BoxFuture<'a, Result<Response>>[src]

fn clone_handler(&self) -> Box<dyn Handler>[src]

Loading content...

Implementations on Foreign Types

impl Handler for Box<dyn Handler>[src]

Loading content...

Implementors

impl<F, T> Handler for HandlerSuper<F, T> where
    F: for<'h> HandlerCamp<'h, T> + Send + Sync,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Into<Error> + Send
[src]

impl<F, T> Handler for HandlerWrapper<F, T> where
    F: HandlerBase<T> + Send + Sync,
    T: Extract + Send + Sync + 'static,
    T::Error: Into<Response> + Into<Error> + Send
[src]

Loading content...