Struct reset_router::Router [−][src]
pub struct Router<SD>(_);
Methods
impl<SD: 'static + Clone> Router<SD>
[src]
impl<SD: 'static + Clone> Router<SD>
pub fn build<'a>() -> RouterBuilder<'a, SD>
[src]
pub fn build<'a>() -> RouterBuilder<'a, SD>
Trait Implementations
impl<SD: Clone> Clone for Router<SD>
[src]
impl<SD: Clone> Clone for Router<SD>
fn clone(&self) -> Router<SD>
[src]
fn clone(&self) -> Router<SD>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<SD: 'static + Clone> Service for Router<SD>
[src]
impl<SD: 'static + Clone> Service for Router<SD>
type Error = Never
The error type that can occur within this Service
. Read more
type Future = Box<Future<Item = Response, Error = Self::Error> + Send>
The Future
returned by this Service
.
type ReqBody = Body
The Payload
body of the http::Request
.
type ResBody = Body
The Payload
body of the http::Response
.
fn call(&mut self, req: Request) -> Self::Future
[src]
fn call(&mut self, req: Request) -> Self::Future
Calls this Service
with a request, returning a Future
of the response.
impl<SD: 'static + Clone> NewService for Router<SD>
[src]
impl<SD: 'static + Clone> NewService for Router<SD>
type Error = <Router<SD> as Service>::Error
The error type that can be returned by Service
s.
type Future = FutureResult<Router<SD>, Never>
The future returned from new_service
of a Service
.
type InitError = Never
The error type that can be returned when creating a new Service
.
type ReqBody = <Router<SD> as Service>::ReqBody
The Payload
body of the http::Request
.
type ResBody = <Router<SD> as Service>::ResBody
The Payload
body of the http::Response
.
type Service = Router<SD>
The resolved Service
from new_service()
.
fn new_service(&self) -> Self::Future
[src]
fn new_service(&self) -> Self::Future
Create a new Service
.