Struct actix_service::dev::MapInitErr [−][src]
pub struct MapInitErr<A, F, E> { /* fields omitted */ }
Expand description
MapInitErr
service combinator
Trait Implementations
impl<A, F, E> ServiceFactory for MapInitErr<A, F, E> where
A: ServiceFactory,
F: Fn(A::InitError) -> E + Clone,
impl<A, F, E> ServiceFactory for MapInitErr<A, F, E> where
A: ServiceFactory,
F: Fn(A::InitError) -> E + Clone,
type InitError = E
type InitError = E
Errors potentially raised while building a service.
type Future = MapInitErrFuture<A, F, E>
type Future = MapInitErrFuture<A, F, E>
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, E> RefUnwindSafe for MapInitErr<A, F, E> where
A: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F, E> Send for MapInitErr<A, F, E> where
A: Send,
E: Send,
F: Send,
impl<A, F, E> Sync for MapInitErr<A, F, E> where
A: Sync,
E: Sync,
F: Sync,
impl<A, F, E> Unpin for MapInitErr<A, F, E> where
A: Unpin,
E: Unpin,
F: Unpin,
impl<A, F, E> UnwindSafe for MapInitErr<A, F, E> where
A: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory