Struct ntex::service::dev::AndThenFactory [−][src]
pub struct AndThenFactory<A, B, Req, Cfg> { /* fields omitted */ }
Expand description
.and_then()
service factory combinator
Trait Implementations
impl<A, B, Req, Cfg> ServiceFactory<Req, Cfg> for AndThenFactory<A, B, Req, Cfg> where
A: ServiceFactory<Req, Cfg>,
B: ServiceFactory<<A as ServiceFactory<Req, Cfg>>::Response, Cfg, Error = <A as ServiceFactory<Req, Cfg>>::Error, InitError = <A as ServiceFactory<Req, Cfg>>::InitError>,
Cfg: Clone,
impl<A, B, Req, Cfg> ServiceFactory<Req, Cfg> for AndThenFactory<A, B, Req, Cfg> where
A: ServiceFactory<Req, Cfg>,
B: ServiceFactory<<A as ServiceFactory<Req, Cfg>>::Response, Cfg, Error = <A as ServiceFactory<Req, Cfg>>::Error, InitError = <A as ServiceFactory<Req, Cfg>>::InitError>,
Cfg: Clone,
type Response = <B as ServiceFactory<<A as ServiceFactory<Req, Cfg>>::Response, Cfg>>::Response
type Response = <B as ServiceFactory<<A as ServiceFactory<Req, Cfg>>::Response, Cfg>>::Response
Responses given by the service
type Error = <A as ServiceFactory<Req, Cfg>>::Error
type Error = <A as ServiceFactory<Req, Cfg>>::Error
Errors produced by the service
type Service = AndThen<<A as ServiceFactory<Req, Cfg>>::Service, <B as ServiceFactory<<A as ServiceFactory<Req, Cfg>>::Response, Cfg>>::Service, Req>
type Service = AndThen<<A as ServiceFactory<Req, Cfg>>::Service, <B as ServiceFactory<<A as ServiceFactory<Req, Cfg>>::Response, Cfg>>::Service, Req>
The Service
value created by this factory
type InitError = <A as ServiceFactory<Req, Cfg>>::InitError
type InitError = <A as ServiceFactory<Req, Cfg>>::InitError
Errors produced while building a service.
type Future = AndThenServiceFactoryResponse<A, B, Req, Cfg>
type Future = AndThenServiceFactoryResponse<A, B, Req, Cfg>
The future of the ServiceFactory
instance.
pub fn new_service(
&self,
cfg: Cfg
) -> <AndThenFactory<A, B, Req, Cfg> as ServiceFactory<Req, Cfg>>::Future
pub fn new_service(
&self,
cfg: Cfg
) -> <AndThenFactory<A, B, Req, Cfg> as ServiceFactory<Req, Cfg>>::Future
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, B, Req, Cfg> RefUnwindSafe for AndThenFactory<A, B, Req, Cfg> where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B, Req, Cfg> !Send for AndThenFactory<A, B, Req, Cfg>
impl<A, B, Req, Cfg> !Sync for AndThenFactory<A, B, Req, Cfg>
impl<A, B, Req, Cfg> Unpin for AndThenFactory<A, B, Req, Cfg>
impl<A, B, Req, Cfg> UnwindSafe for AndThenFactory<A, B, Req, Cfg> where
A: RefUnwindSafe,
B: RefUnwindSafe,
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