pub struct InFlightService<S> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<S: Debug> Debug for InFlightService<S>
impl<S: Debug> Debug for InFlightService<S>
source§impl<T, R> Service<R> for InFlightService<T>where
T: Service<R>,
impl<T, R> Service<R> for InFlightService<T>where
T: Service<R>,
source§type Error = <T as Service<R>>::Error
type Error = <T as Service<R>>::Error
Errors produced by the service when polling readiness or executing call.
source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
source§async fn call(
&self,
req: R,
ctx: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: R, ctx: ServiceCtx<'_, Self>, ) -> Result<Self::Response, Self::Error>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<S> Freeze for InFlightService<S>where
S: Freeze,
impl<S> !RefUnwindSafe for InFlightService<S>
impl<S> !Send for InFlightService<S>
impl<S> !Sync for InFlightService<S>
impl<S> Unpin for InFlightService<S>where
S: Unpin,
impl<S> !UnwindSafe for InFlightService<S>
Blanket Implementations§
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
source§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service