Struct actix_net::service::MapErrNewService[][src]

pub struct MapErrNewService<A, F, E> { /* fields omitted */ }

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

This is created by the NewServiceExt::map_err method.

Methods

impl<A, F, E> MapErrNewService<A, F, E> where
    A: NewService,
    F: Fn(A::Error) -> E, 
[src]

Create new MapErr new service instance

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Requests handled by the service

Responses given by the service

Errors produced by the service

The Service value created by this factory

Errors produced while building a service.

The future of the Service instance.

Create and return a new service value asynchronously.

Auto Trait Implementations

impl<A, F, E> Send for MapErrNewService<A, F, E> where
    A: Send,
    E: Send,
    F: Send

impl<A, F, E> Sync for MapErrNewService<A, F, E> where
    A: Sync,
    E: Sync,
    F: Sync