Struct actix_net::service::MapErr[][src]

pub struct MapErr<A, F, E> where
    A: Service,
    F: Fn(A::Error) -> 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.

Methods

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

Create new MapErr combinator

Trait Implementations

impl<A, F, E> Clone for MapErr<A, F, E> where
    A: Service + 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> Service for MapErr<A, F, E> where
    A: Service,
    F: Fn(A::Error) -> E,
    F: Clone
[src]

Requests handled by the service.

Responses given by the service.

Errors produced by the service.

The future response value.

Returns Ready when the service is able to process requests. Read more

Process the request and return the response asynchronously. Read more

A future yielding the service when it is ready to accept a request.

Auto Trait Implementations

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

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