Struct tokio_http2::router::route::route::Route [] [src]

pub struct Route {
    pub method: Method,
    pub path: RequestPath,
    pub handler: Handler,
}

Holds route information

Fields

HTTP method to match

RequestPath to match

Request handler

This should be method that accepts Request and responds with Response:

Methods

impl Route
[src]

Trait Implementations

impl Clone for Route
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Route
[src]

Returns the "default value" for a type. Read more

impl Debug for Route
[src]

Formats the value using the given formatter.