Struct luminal_router::Router [] [src]

pub struct Router {
    pub routes: HashMap<Method, RouteTree<Route>>,
}

Router for Hyper.

Fields

Methods

impl Router
[src]

[src]

[src]

Add a service for Method::Get at the specified route.

[src]

Add a Service for Method::Get at the specific route by coercing I into a Service.

[src]

Add a handler for Method::Post at the specified route.

[src]

Add a handler at the specific route path for the given Method.

[src]

Trait Implementations

impl Default for Router
[src]

[src]

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

impl Service for Router
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

[src]

Process the request and return the response asynchronously.

Auto Trait Implementations

impl !Send for Router

impl !Sync for Router