Struct actix_service::dev::MapServiceFactory [−][src]
pub struct MapServiceFactory<A, F, Res> { /* fields omitted */ }
Expand description
MapNewService
new service combinator
Trait Implementations
impl<A, F, Res> ServiceFactory for MapServiceFactory<A, F, Res> where
A: ServiceFactory,
F: FnMut(A::Response) -> Res + Clone,
impl<A, F, Res> ServiceFactory for MapServiceFactory<A, F, Res> where
A: ServiceFactory,
F: FnMut(A::Response) -> Res + Clone,
type Response = Res
type Response = Res
Responses given by the created services.
type Future = MapServiceFuture<A, F, Res>
type Future = MapServiceFuture<A, F, Res>
The future of the Service
instance.
Create and return a new service asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<A, F, Res> RefUnwindSafe for MapServiceFactory<A, F, Res> where
A: RefUnwindSafe,
F: RefUnwindSafe,
Res: RefUnwindSafe,
impl<A, F, Res> Send for MapServiceFactory<A, F, Res> where
A: Send,
F: Send,
Res: Send,
impl<A, F, Res> Sync for MapServiceFactory<A, F, Res> where
A: Sync,
F: Sync,
Res: Sync,
impl<A, F, Res> Unpin for MapServiceFactory<A, F, Res> where
A: Unpin,
F: Unpin,
Res: Unpin,
impl<A, F, Res> UnwindSafe for MapServiceFactory<A, F, Res> where
A: UnwindSafe,
F: UnwindSafe,
Res: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory