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]
impl<A, F, E> MapErrNewService<A, F, E> where
A: NewService,
F: Fn(A::Error) -> E, Trait Implementations
impl<A, F, E> Clone for MapErrNewService<A, F, E> where
A: NewService + Clone,
F: Fn(A::Error) -> E + Clone, [src]
impl<A, F, E> Clone for MapErrNewService<A, F, E> where
A: NewService + Clone,
F: Fn(A::Error) -> E + 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, E> NewService for MapErrNewService<A, F, E> where
A: NewService,
F: Fn(A::Error) -> E + Clone, [src]
impl<A, F, E> NewService for MapErrNewService<A, F, E> where
A: NewService,
F: Fn(A::Error) -> E + Clone, type Request = A::Request
Requests handled by the service
type Response = A::Response
Responses given by the service
type Error = E
Errors produced by the service
type Service = MapErr<A::Service, F, E>
The Service value created by this factory
type InitError = A::InitError
Errors produced while building a service.
type Future = MapErrNewServiceFuture<A, F, E>
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, E> Send for MapErrNewService<A, F, E> where
A: Send,
E: Send,
F: Send,
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,
impl<A, F, E> Sync for MapErrNewService<A, F, E> where
A: Sync,
E: Sync,
F: Sync,