pub struct InspectErr<S, F> { /* private fields */ }Expand description
Service for the inspect_err combinator.
Trait Implementations§
Source§impl<S, F> Clone for InspectErr<S, F>
impl<S, F> Clone for InspectErr<S, F>
Source§impl<S, F> Debug for InspectErr<S, F>where
S: Debug,
impl<S, F> Debug for InspectErr<S, F>where
S: Debug,
Source§impl<S, F, R> Service<R> for InspectErr<S, F>
impl<S, F, R> Service<R> for InspectErr<S, F>
Source§type Error = <S as Service<R>>::Error
type Error = <S 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 ready to process requests. Read more
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls the service from the current async task. Read more
Source§async fn call(
&self,
r: R,
ctx: ServiceCtx<'_, Self>,
) -> Result<S::Response, S::Error>
async fn call( &self, r: R, ctx: ServiceCtx<'_, Self>, ) -> Result<S::Response, S::Error>
Processes a request and returns the response asynchronously. Read more
Auto Trait Implementations§
impl<S, F> Freeze for InspectErr<S, F>
impl<S, F> RefUnwindSafe for InspectErr<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F> Send for InspectErr<S, F>
impl<S, F> Sync for InspectErr<S, F>
impl<S, F> Unpin for InspectErr<S, F>
impl<S, F> UnwindSafe for InspectErr<S, F>where
S: UnwindSafe,
F: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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