[−][src]Struct actix_service::dev::MapErr
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
impl<S, Req, F, E> Clone for MapErr<S, Req, F, E> where
S: Clone,
F: Clone,
[src]
S: Clone,
F: Clone,
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A, Req, F, E> Service<Req> for MapErr<A, Req, F, E> where
A: Service<Req>,
F: Fn(A::Error) -> E + Clone,
[src]
A: Service<Req>,
F: Fn(A::Error) -> E + Clone,
type Response = A::Response
Responses given by the service.
type Error = E
Errors produced by the service when polling readiness or executing call.
type Future = MapErrFuture<A, Req, F, E>
The future response value.
pub fn poll_ready(
&mut self,
ctx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
&mut self,
ctx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn call(&mut self, req: Req) -> Self::Future
[src]
Auto Trait Implementations
impl<S, Req, F, E> Send for MapErr<S, Req, F, E> where
E: Send,
F: Send,
Req: Send,
S: Send,
[src]
E: Send,
F: Send,
Req: Send,
S: Send,
impl<S, Req, F, E> Sync for MapErr<S, Req, F, E> where
E: Sync,
F: Sync,
Req: Sync,
S: Sync,
[src]
E: Sync,
F: Sync,
Req: Sync,
S: Sync,
impl<S, Req, F, E> Unpin for MapErr<S, Req, F, E> where
E: Unpin,
F: Unpin,
Req: Unpin,
S: Unpin,
[src]
E: Unpin,
F: Unpin,
Req: Unpin,
S: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, Req> IntoService<S, Req> for S where
S: Service<Req>,
[src]
S: Service<Req>,
pub fn into_service(Self) -> S
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,