Struct actix_service::dev::MapConfig [−][src]
pub struct MapConfig<A, F, C> { /* fields omitted */ }
Expand description
map_config()
adapter service factory
Trait Implementations
impl<A, F, C> ServiceFactory for MapConfig<A, F, C> where
A: ServiceFactory,
F: Fn(C) -> A::Config,
impl<A, F, C> ServiceFactory for MapConfig<A, F, C> where
A: ServiceFactory,
F: Fn(C) -> A::Config,
type Config = C
type Config = C
Service factory configuration.
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, C> RefUnwindSafe for MapConfig<A, F, C> where
A: RefUnwindSafe,
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F, C> UnwindSafe for MapConfig<A, F, C> where
A: UnwindSafe,
C: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory