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]
impl<A, F, R> MapNewService<A, F, R> where
A: NewService,
F: Fn(A::Response) -> R, Trait Implementations
impl<A, F, R> Clone for MapNewService<A, F, R> where
A: NewService + Clone,
F: Fn(A::Response) -> R + Clone, [src]
impl<A, F, R> Clone for MapNewService<A, F, R> where
A: NewService + Clone,
F: Fn(A::Response) -> R + Clone, fn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]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]
impl<A, F, R> NewService for MapNewService<A, F, R> where
A: NewService,
F: Fn(A::Response) -> R + Clone, type Request = A::Request
Requests handled by the service
type Response = R
Responses given by the service
type Error = A::Error
Errors produced by the service
type Service = Map<A::Service, F, R>
The Service value created by this factory
type InitError = A::InitError
Errors produced while building a service.
type Future = MapNewServiceFuture<A, F, R>
The future of the Service instance.
fn new_service(&self) -> Self::Future[src]
fn new_service(&self) -> Self::FutureCreate 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> 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,
impl<A, F, R> Sync for MapNewService<A, F, R> where
A: Sync,
F: Sync,
R: Sync,