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

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

Creates a new RouteImpl from the provided components.

Trait Implementations

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
Determines if this Route should be invoked, based on the request data in `State.
Determines if this Route intends to delegate requests to a secondary Router instance.
Dispatches the request to this Route, which will execute the pipelines and the handler assigned to the `Route. Read more
Extracts dynamic components of the Request path and stores the PathExtractor in State.
Extends the Response object when the PathExtractor fails.
Extracts the query string parameters and stores the QueryStringExtractor in State.
Extends the Response object when query string extraction fails.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more