Struct actix_service::dev::MapErrServiceFactory[][src]

pub struct MapErrServiceFactory<A, Req, F, E> where
    A: ServiceFactory<Req>,
    F: Fn(A::Error) -> E + Clone
{ /* fields omitted */ }

Factory for the map_err combinator, changing the type of a new service's error.

This is created by the NewServiceExt::map_err method.

Trait Implementations

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

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

type Response = A::Response

Responses given by the created services.

type Error = E

Errors produced by the created services.

type Config = A::Config

Service factory configuration.

type Service = MapErr<A::Service, Req, F, E>

The kind of Service created by this factory.

type InitError = A::InitError

Errors potentially raised while building a service.

type Future = MapErrServiceFuture<A, Req, F, E>

The future of the Service instance.

Auto Trait Implementations

impl<A, Req, F, E> Send for MapErrServiceFactory<A, Req, F, E> where
    A: Send,
    E: Send,
    F: Send,
    Req: Send
[src]

impl<A, Req, F, E> Sync for MapErrServiceFactory<A, Req, F, E> where
    A: Sync,
    E: Sync,
    F: Sync,
    Req: Sync
[src]

impl<A, Req, F, E> Unpin for MapErrServiceFactory<A, Req, F, E> where
    A: Unpin,
    E: Unpin,
    F: Unpin,
    Req: 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<SF, Req> IntoServiceFactory<SF, Req> for SF where
    SF: ServiceFactory<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.