Struct hyper_router::RouterService [] [src]

pub struct RouterService {
    pub router: Router,
    pub error_handler: fn(_: StatusCode) -> Response,
}

The default simple router service.

Fields

Methods

impl RouterService
[src]

[src]

Trait Implementations

impl Debug for RouterService
[src]

[src]

Formats the value using the given formatter. Read more

impl Service for RouterService
[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.