pub struct Ready<S> { /* private fields */ }Expand description
Service produced by ready().
Uses its own readiness cache, independently of the calling scope’s cache.
Enclosing services must forward Service::bind to this wrapper.
Trait Implementations§
Source§impl<S, St, Req> Service<St, Req> for Ready<S>where
S: Service<St, Req>,
impl<S, St, Req> Service<St, Req> for Ready<S>where
S: Service<St, Req>,
Source§type Error = <S as Service<St, Req>>::Error
type Error = <S as Service<St, Req>>::Error
Error produced while checking readiness or processing a request.
Source§fn ready(
&self,
ctx: Ctx<'_, Ready<S>, St>,
) -> impl Future<Output = Result<(), <Ready<S> as Service<St, Req>>::Error>>
fn ready( &self, ctx: Ctx<'_, Ready<S>, St>, ) -> impl Future<Output = Result<(), <Ready<S> as Service<St, Req>>::Error>>
Waits until the service is ready to process a request. Read more
Source§fn call(
&self,
req: Req,
ctx: Ctx<'_, Ready<S>, St>,
) -> impl Future<Output = Result<<Ready<S> as Service<St, Req>>::Res, <Ready<S> as Service<St, Req>>::Error>>
fn call( &self, req: Req, ctx: Ctx<'_, Ready<S>, St>, ) -> impl Future<Output = Result<<Ready<S> as Service<St, Req>>::Res, <Ready<S> as Service<St, Req>>::Error>>
Processes a request and asynchronously returns the response. Read more
Source§fn shutdown(&self, ctx: Ctx<'_, Ready<S>, St>) -> impl Future<Output = ()>
fn shutdown(&self, ctx: Ctx<'_, Ready<S>, St>) -> impl Future<Output = ()>
Shuts down the service. Read more
Source§fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
Maps this service’s output to a different type, returning a new service. Read more
Source§fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
Maps this service’s error to a different type, returning a new service. Read more
Auto Trait Implementations§
impl<S> !Freeze for Ready<S>
impl<S> !RefUnwindSafe for Ready<S>
impl<S> !Send for Ready<S>
impl<S> !Sync for Ready<S>
impl<S> !UnwindSafe for Ready<S>
impl<S> Unpin for Ready<S>where
S: Unpin,
impl<S> UnsafeUnpin for Ready<S>where
S: UnsafeUnpin,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
impl<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
Source§fn into_service(self) -> S
fn into_service(self) -> S
Converts this value into a service.