Struct actix_net::service::Map[][src]

pub struct Map<A, F, R> where
    A: Service,
    F: Fn(A::Response) -> R, 
{ /* fields omitted */ }

Service for the map combinator, changing the type of a service's response.

This is created by the ServiceExt::map method.

Methods

impl<A, F, R> Map<A, F, R> where
    A: Service,
    F: Fn(A::Response) -> R, 
[src]

Create new Map combinator

Trait Implementations

impl<A, F, R> Clone for Map<A, F, R> where
    A: Service + Clone,
    F: Fn(A::Response) -> R + Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<A, F, R> Service for Map<A, F, R> where
    A: Service,
    F: Fn(A::Response) -> R + 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, R> Send for Map<A, F, R> where
    A: Send,
    F: Send

impl<A, F, R> Sync for Map<A, F, R> where
    A: Sync,
    F: Sync