Struct ntex_service::dev::MapErr
source · pub struct MapErr<A, R, 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, R, F, E>where
A: Service<R>,
F: Fn(A::Error) -> E,
impl<A, R, F, E> Service<R> for MapErr<A, R, F, E>where
A: Service<R>,
F: Fn(A::Error) -> E,
§type Future<'f>
where
A: 'f,
R: 'f,
F: 'f,
E: 'f = MapErrFuture<'f, A, R, F, E>
type Future<'f>
where
A: 'f,
R: 'f,
F: 'f,
E: 'f = MapErrFuture<'f, A, R, F, E>
The future response value.
source§fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready when the service is able to process requests. Read moresource§fn call(&self, req: R) -> Self::Future<'_>
fn call(&self, req: R) -> Self::Future<'_>
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<A, R, F, E> RefUnwindSafe for MapErr<A, R, F, E>where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, R, F, E> Send for MapErr<A, R, F, E>where
A: Send,
F: Send,
impl<A, R, F, E> Sync for MapErr<A, R, F, E>where
A: Sync,
F: Sync,
impl<A, R, F, E> Unpin for MapErr<A, R, F, E>where
A: Unpin,
F: Unpin,
impl<A, R, F, E> UnwindSafe for MapErr<A, R, F, E>where
A: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
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