Module route

Source
Expand description

Types and traits for routes and their request handlers and return types.

Structs§

Route
A request handling route.
RouteUri
A route URI which is matched against requests.

Traits§

Cloneable
Helper trait to make a Route’s Box<dyn Handler> Clone.
Handler
Trait implemented by Route request handlers.

Type Aliases§

BoxFuture
Type alias for the return type of a raw Route’s Handler.
Outcome
Type alias for the return type of a Route’s Handler::handle().