[][src]Struct reset_router::Router

pub struct Router<S>(_);

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_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 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 Services.

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 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

impl<S> Unpin for Router<S>

impl<S> Sync for Router<S> where
    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]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<N, Ctx> MakeService<Ctx> for N where
    N: NewService
[src]

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 Services.

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.