Struct shio::router::Route [] [src]

pub struct Route { /* fields omitted */ }

Route contains a [Handler] and information for matching against requests.

Methods

impl Route
[src]

[src]

Constructs a new Route which matches against the provided information.

Route::new(Method::Post, "/inbox", |_| {
    // [...]
});

Trait Implementations

impl<P, H> From<(Method, P, H)> for Route where
    P: Into<Pattern>,
    H: Handler + 'static,
    <H::Result as IntoFuture>::Error: Debug + Send
[src]

[src]

Performs the conversion.

impl Debug for Route
[src]

[src]

Formats the value using the given formatter.