pub struct MapErr<F, S, 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<F, S, St, Req, E> Service<St, Req> for MapErr<F, S, E>
impl<F, S, St, Req, E> Service<St, Req> for MapErr<F, S, E>
Source§async fn call(&self, req: Req, ctx: Ctx<'_, Self, St>) -> Result<S::Res, E>
async fn call(&self, req: Req, ctx: Ctx<'_, Self, St>) -> Result<S::Res, E>
Processes a request and asynchronously returns the response. Read more
Source§async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), E>
async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), E>
Returns when the service is ready to process requests. 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<F, S, E> Freeze for MapErr<F, S, E>
impl<F, S, E> RefUnwindSafe for MapErr<F, S, E>
impl<F, S, E> Send for MapErr<F, S, E>
impl<F, S, E> Sync for MapErr<F, S, E>
impl<F, S, E> Unpin for MapErr<F, S, E>
impl<F, S, E> UnsafeUnpin for MapErr<F, S, E>
impl<F, S, E> UnwindSafe for MapErr<F, S, 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<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
Convert to a
Service