[][src]Struct actix_service::dev::MapErr

pub struct MapErr<S, Req, F, E> { /* fields omitted */ }

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]

impl<A, Req, F, E> Service<Req> for MapErr<A, Req, F, E> where
    A: Service<Req>,
    F: Fn(A::Error) -> E + Clone
[src]

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.

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]

impl<S, Req, F, E> Sync for MapErr<S, Req, F, E> where
    E: Sync,
    F: Sync,
    Req: Sync,
    S: Sync
[src]

impl<S, Req, F, E> Unpin for MapErr<S, Req, F, E> where
    E: Unpin,
    F: Unpin,
    Req: Unpin,
    S: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<S, Req> IntoService<S, Req> for S where
    S: Service<Req>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.