Struct hyper_router::RouterService
[−]
[src]
pub struct RouterService<R: RouteRecognizer> { /* fields omitted */ }An asynchronous task executed by hyper.
Trait Implementations
impl<R> Service for RouterService<R> where
R: RouteRecognizer, [src]
R: RouteRecognizer,
type Request = Request
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = HyperError
Errors produced by the service.
type Future = BoxFuture<Response, HyperError>
The future response value.
fn call(&self, req: Request) -> Self::Future
Process the request and return the response asynchronously.