Struct ntex_service::dev::MapErr
source · 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<'_, 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<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> 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<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