[][src]Struct gotham::router::route::RouteImpl

pub struct RouteImpl<RM, PE, QSE> where
    RM: RouteMatcher,
    PE: PathExtractor<Body>,
    QSE: QueryStringExtractor<Body>, 
{ /* fields omitted */ }

Concrete type for a route in a Gotham web application. Values of this type are created by the gotham::router::builder API and held internally in the Router for dispatching requests.

Implementations

impl<RM, PE, QSE> RouteImpl<RM, PE, QSE> where
    RM: RouteMatcher,
    PE: PathExtractor<Body>,
    QSE: QueryStringExtractor<Body>, 
[src]

pub fn new(
    matcher: RM,
    dispatcher: Box<dyn Dispatcher + Send + Sync>,
    _extractors: Extractors<PE, QSE>,
    delegation: Delegation
) -> Self
[src]

Creates a new RouteImpl from the provided components.

Trait Implementations

impl<RM, PE, QSE> Route for RouteImpl<RM, PE, QSE> where
    RM: RouteMatcher,
    PE: PathExtractor<Body>,
    QSE: QueryStringExtractor<Body>, 
[src]

type ResBody = Body

The type of the response body. The requirements of Hyper are that this implements HttpBody. Almost always, it will want to be hyper::Body. Read more

Auto Trait Implementations

impl<RM, PE, QSE> RefUnwindSafe for RouteImpl<RM, PE, QSE>

impl<RM, PE, QSE> Send for RouteImpl<RM, PE, QSE> where
    RM: Send

impl<RM, PE, QSE> Sync for RouteImpl<RM, PE, QSE> where
    PE: Sync,
    QSE: Sync,
    RM: Sync

impl<RM, PE, QSE> Unpin for RouteImpl<RM, PE, QSE> where
    PE: Unpin,
    QSE: Unpin,
    RM: Unpin

impl<RM, PE, QSE> !UnwindSafe for RouteImpl<RM, PE, QSE>

Blanket Implementations

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

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,