Struct reset_router::Router
[−]
[src]
pub struct Router { /* fields omitted */ }
Methods
impl Router
[src]
fn build<'a>() -> RouterBuilder<'a>
Trait Implementations
impl RouterExtensions for Router
[src]
fn quick_serve<F: Fn() -> Core + 'static + Send + Sync>(
self,
num_threads: usize,
addr: SocketAddr,
core_gen: F
)
self,
num_threads: usize,
addr: SocketAddr,
core_gen: F
)
impl Service for Router
[src]
type Request = HyperRequest
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = BoxFuture<Self::Response, Self::Error>
The future response value.
fn call(&self, req: Self::Request) -> Self::Future
Process the request and return the response asynchronously.