Struct hyper_router::Router
[−]
[src]
pub struct Router<R: RouteRecognizer> { /* fields omitted */ }Trait Implementations
impl<R: RouteRecognizer> From<R> for Router<R>[src]
fn from(recognizer: R) -> Self
Performs the conversion.
impl<R> NewService for Router<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 Instance = RouterService<R>
The Service value created by this factory
fn new_service(&self) -> Result<Self::Instance>
Create and return a new service value.