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

pub struct RouteImpl<RM, PE, QSE> where
    RM: RouteMatcher,
    PE: PathExtractor,
    QSE: QueryStringExtractor
{ /* 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.

Methods

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

[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,
    QSE: QueryStringExtractor
[src]

[src]

Determines if this Route should be invoked, based on the request data in `State.

[src]

Determines if this Route intends to delegate requests to a secondary Router instance.

Important traits for Box<W>
[src]

Dispatches the request to this Route, which will execute the pipelines and the handler assigned to the `Route. Read more

[src]

Extracts dynamic components of the Request path and stores the PathExtractor in State.

[src]

Extends the Response object when the PathExtractor fails.

[src]

Extracts the query string parameters and stores the QueryStringExtractor in State.

[src]

Extends the Response object when query string extraction fails.

Auto Trait Implementations

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

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