pub struct MapErr<A, F, E> { /* private fields */ }Expand description
Service for the map_err combinator, changing the type of a service’s
error.
This is created by the ServiceExt::map_err method.
Trait Implementations§
Source§impl<A, R, F, E> Service<R> for MapErr<A, F, E>
impl<A, R, F, E> Service<R> for MapErr<A, F, E>
Source§async fn ready(
&self,
ctx: ServiceCtx<'_, MapErr<A, F, E>>,
) -> Result<(), <MapErr<A, F, E> as Service<R>>::Error>
async fn ready( &self, ctx: ServiceCtx<'_, MapErr<A, F, E>>, ) -> Result<(), <MapErr<A, F, E> as Service<R>>::Error>
Returns when the service is ready to process requests. Read more
Source§fn poll(
&self,
cx: &mut Context<'_>,
) -> Result<(), <MapErr<A, F, E> as Service<R>>::Error>
fn poll( &self, cx: &mut Context<'_>, ) -> Result<(), <MapErr<A, F, E> as Service<R>>::Error>
Polls the service from the current async task. Read more
Source§async fn call(
&self,
req: R,
ctx: ServiceCtx<'_, MapErr<A, F, E>>,
) -> Result<<MapErr<A, F, E> as Service<R>>::Response, <MapErr<A, F, E> as Service<R>>::Error>
async fn call( &self, req: R, ctx: ServiceCtx<'_, MapErr<A, F, E>>, ) -> Result<<MapErr<A, F, E> as Service<R>>::Response, <MapErr<A, F, E> as Service<R>>::Error>
Processes a request and returns the response asynchronously. Read more
Auto Trait Implementations§
impl<A, F, E> Freeze for MapErr<A, F, E>
impl<A, F, E> RefUnwindSafe for MapErr<A, F, E>
impl<A, F, E> Send for MapErr<A, F, E>
impl<A, F, E> Sync for MapErr<A, F, E>
impl<A, F, E> Unpin for MapErr<A, F, E>
impl<A, F, E> UnsafeUnpin for MapErr<A, F, E>where
A: UnsafeUnpin,
F: UnsafeUnpin,
impl<A, F, E> UnwindSafe for MapErr<A, F, E>
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