[−][src]Struct gotham::router::route::dispatch::DispatcherImpl
Default implementation of the Dispatcher
trait.
Methods
impl<H, C, P> DispatcherImpl<H, C, P> where
H: NewHandler,
H::Instance: 'static,
C: PipelineHandleChain<P>,
P: RefUnwindSafe,
[src]
H: NewHandler,
H::Instance: 'static,
C: PipelineHandleChain<P>,
P: RefUnwindSafe,
pub fn new(new_handler: H, pipeline_chain: C, pipelines: PipelineSet<P>) -> Self
[src]
Creates a new DispatcherImpl
.
new_handler
- TheHandler
that will be called once thepipeline_chain
is complete.pipeline_chain
- A chain ofPipeline
instance handles that indicate whichPipelines
will be invoked.pipelines
- AllPipeline
instances, accessible by the handles provided inpipeline_chain
.
Trait Implementations
impl<H, C, P> Dispatcher for DispatcherImpl<H, C, P> where
H: NewHandler,
H::Instance: Send + 'static,
C: PipelineHandleChain<P>,
P: RefUnwindSafe,
[src]
H: NewHandler,
H::Instance: Send + 'static,
C: PipelineHandleChain<P>,
P: RefUnwindSafe,
fn dispatch(&self, state: State) -> Box<HandlerFuture>
[src]
Auto Trait Implementations
impl<H, C, P> Unpin for DispatcherImpl<H, C, P> where
C: Unpin,
H: Unpin,
C: Unpin,
H: Unpin,
impl<H, C, P> Sync for DispatcherImpl<H, C, P> where
C: Sync,
P: Send + Sync,
C: Sync,
P: Send + Sync,
impl<H, C, P> Send for DispatcherImpl<H, C, P> where
C: Send,
P: Send + Sync,
C: Send,
P: Send + Sync,
impl<H, C, P> RefUnwindSafe for DispatcherImpl<H, C, P>
impl<H, C, P> UnwindSafe for DispatcherImpl<H, C, P> where
C: UnwindSafe,
H: UnwindSafe,
C: UnwindSafe,
H: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,