pub trait Dispatcher: RefUnwindSafe {
    // Required method
    fn dispatch(&self, state: State) -> Pin<Box<HandlerFuture>>;
}
Expand description

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

Required Methods§

source

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

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

Implementors§

source§

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