Struct reset_router::Router
source · pub struct Router<S>(_);Implementations
Trait Implementations
sourceimpl<S: 'static + Send + Sync + Clone> NewService for Router<S>
impl<S: 'static + Send + Sync + Clone> NewService for Router<S>
type Future = FutureResult<Router<S>, Never>
type Future = FutureResult<Router<S>, Never>
The future returned from
new_service of a Service.sourcefn new_service(&self) -> Self::Future
fn new_service(&self) -> Self::Future
Create a new
Service.sourceimpl<S: 'static + Send + Sync> Service for Router<S>
impl<S: 'static + Send + Sync> Service for Router<S>
type Future = Box<dyn Future<Item = Response<<Router<S> as Service>::ResBody>, Error = <Router<S> as Service>::Error> + Send + 'static, Global>
type Future = Box<dyn Future<Item = Response<<Router<S> as Service>::ResBody>, Error = <Router<S> as Service>::Error> + Send + 'static, Global>
The
Future returned by this Service.Auto Trait Implementations
impl<S> !RefUnwindSafe for Router<S>
impl<S> Send for Router<S>where
S: Send + Sync,
impl<S> Sync for Router<S>where
S: Send + Sync,
impl<S> Unpin for Router<S>
impl<S> !UnwindSafe for Router<S>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<N, Ctx> MakeService<Ctx> for Nwhere
N: NewService,
impl<N, Ctx> MakeService<Ctx> for Nwhere
N: NewService,
type ReqBody = <N as NewService>::ReqBody
type ReqBody = <N as NewService>::ReqBody
The
Payload body of the http::Request.type ResBody = <N as NewService>::ResBody
type ResBody = <N as NewService>::ResBody
The
Payload body of the http::Response.type Error = <N as NewService>::Error
type Error = <N as NewService>::Error
The error type that can be returned by
Services.type Service = <N as NewService>::Service
type Service = <N as NewService>::Service
The resolved
Service from new_service().type Future = <N as NewService>::Future
type Future = <N as NewService>::Future
The future returned from
new_service of a Service.type MakeError = <N as NewService>::InitError
type MakeError = <N as NewService>::InitError
The error type that can be returned when creating a new
Service.sourcefn poll_ready(
&mut self
) -> Result<Async<()>, <N as MakeService<Ctx>>::MakeError>
fn poll_ready(
&mut self
) -> Result<Async<()>, <N as MakeService<Ctx>>::MakeError>
sourcefn make_service(&mut self, _: Ctx) -> <N as MakeService<Ctx>>::Future
fn make_service(&mut self, _: Ctx) -> <N as MakeService<Ctx>>::Future
Create a new
Service.