[−][src]Struct reset_router::Router
The router, impls hyper::service::Service
and hyper::service::MakeService
Methods
impl Router<()>
[src]
pub fn build<'a>() -> RouterBuilder<'a, ()>
[src]
Trait Implementations
impl<S: Clone> Clone for Router<S>
[src]
fn clone(&self) -> Router<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: 'static + Send + Sync> Service for Router<S>
[src]
type Error = Never
The error type that can occur within this Service
. Read more
type Future = Box<dyn Future<Item = Response<Self::ResBody>, 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::ReqBody>) -> Self::Future
[src]
fn poll_ready(&mut self) -> Result<Async<()>, Self::Error>
[src]
Returns Ready
when the service is able to process requests. Read more
impl<S: 'static + Send + Sync + Clone, Ctx> MakeService<Ctx> for Router<S>
[src]
type Error = <Router<S> as Service>::Error
The error type that can be returned by Service
s.
type Future = FutureResult<Router<S>, Never>
The future returned from new_service
of a Service
.
type MakeError = Never
The error type that can be returned when creating a new Service
.
type ReqBody = <Router<S> as Service>::ReqBody
The Payload
body of the http::Request
.
type ResBody = <Router<S> as Service>::ResBody
The Payload
body of the http::Response
.
type Service = Router<S>
The resolved Service
from new_service()
.
fn make_service(&mut self, _: Ctx) -> Self::Future
[src]
fn poll_ready(&mut self) -> Result<Async<()>, Self::MakeError>
[src]
Returns Ready
when the constructor is ready to create a new Service
. Read more
Auto Trait Implementations
impl<S> Send for Router<S> where
S: Send + Sync,
S: Send + Sync,
impl<S> Unpin for Router<S>
impl<S> Sync for Router<S> where
S: Send + Sync,
S: Send + Sync,
impl<S> !UnwindSafe for Router<S>
impl<S> !RefUnwindSafe for Router<S>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<N, Ctx> MakeService<Ctx> for N where
N: NewService,
[src]
N: NewService,
type ReqBody = <N as NewService>::ReqBody
The Payload
body of the http::Request
.
type ResBody = <N as NewService>::ResBody
The Payload
body of the http::Response
.
type Error = <N as NewService>::Error
The error type that can be returned by Service
s.
type Service = <N as NewService>::Service
The resolved Service
from new_service()
.
type Future = <N as NewService>::Future
The future returned from new_service
of a Service
.
type MakeError = <N as NewService>::InitError
The error type that can be returned when creating a new Service
.
fn poll_ready(
&mut self
) -> Result<Async<()>, <N as MakeService<Ctx>>::MakeError>
[src]
&mut self
) -> Result<Async<()>, <N as MakeService<Ctx>>::MakeError>