[][src]Struct gotham::router::route::dispatch::DispatcherImpl

pub struct DispatcherImpl<H, C, P> where
    H: NewHandler,
    C: PipelineHandleChain<P>,
    P: RefUnwindSafe
{ /* fields omitted */ }

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]

pub fn new(new_handler: H, pipeline_chain: C, pipelines: PipelineSet<P>) -> Self[src]

Creates a new DispatcherImpl.

  • new_handler - The Handler that will be called once the pipeline_chain is complete.
  • pipeline_chain - A chain of Pipeline instance handles that indicate which Pipelines will be invoked.
  • pipelines - All Pipeline instances, accessible by the handles provided in pipeline_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]

Auto Trait Implementations

impl<H, C, P> Unpin for DispatcherImpl<H, C, P> where
    C: Unpin,
    H: Unpin

impl<H, C, P> Sync for DispatcherImpl<H, C, P> where
    C: Sync,
    P: Send + Sync

impl<H, C, P> Send for DispatcherImpl<H, C, P> where
    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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T