[][src]Trait gotham::router::route::dispatch::Dispatcher

pub trait Dispatcher: RefUnwindSafe {
    fn dispatch(&self, state: State) -> Box<HandlerFuture>;
}

Used by Router to dispatch requests via pipelines and finally into the configured Handler.

Required methods

fn dispatch(&self, state: State) -> Box<HandlerFuture>

Dispatches a request via pipelines and Handler represented by this Dispatcher.

Loading content...

Implementors

impl<H, C, P> Dispatcher for DispatcherImpl<H, C, P> where
    H: NewHandler,
    H::Instance: Send + 'static,
    C: PipelineHandleChain<P>,
    P: RefUnwindSafe
[src]

Loading content...