Struct actix_net::service::MapNewService[][src]

pub struct MapNewService<A, F, R> { /* fields omitted */ }

MapNewService new service combinator

Methods

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

Create new Map new service instance

Trait Implementations

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

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