Struct ntex::service::dev::UnitConfig [−][src]
pub struct UnitConfig<A, R, C> { /* fields omitted */ }
Expand description
unit_config()
config combinator
Trait Implementations
type Response = <A as ServiceFactory<R, ()>>::Response
type Response = <A as ServiceFactory<R, ()>>::Response
Responses given by the service
type Error = <A as ServiceFactory<R, ()>>::Error
type Error = <A as ServiceFactory<R, ()>>::Error
Errors produced by the service
type Service = <A as ServiceFactory<R, ()>>::Service
type Service = <A as ServiceFactory<R, ()>>::Service
The Service
value created by this factory
type InitError = <A as ServiceFactory<R, ()>>::InitError
type InitError = <A as ServiceFactory<R, ()>>::InitError
Errors produced while building a service.
type Future = <A as ServiceFactory<R, ()>>::Future
type Future = <A as ServiceFactory<R, ()>>::Future
The future of the ServiceFactory
instance.
Create and return a new service value 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, Req, Cfg, F, E> where
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, F, E> where
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, R, C> RefUnwindSafe for UnitConfig<A, R, C> where
A: RefUnwindSafe,
C: RefUnwindSafe,
R: RefUnwindSafe,
impl<A, R, C> Send for UnitConfig<A, R, C> where
A: Send,
C: Send,
R: Send,
impl<A, R, C> Sync for UnitConfig<A, R, C> where
A: Sync,
C: Sync,
R: Sync,
impl<A, R, C> Unpin for UnitConfig<A, R, C> where
A: Unpin,
C: Unpin,
R: Unpin,
impl<A, R, C> UnwindSafe for UnitConfig<A, R, C> where
A: UnwindSafe,
C: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more