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::Response, Cfg, Error = A::Error, InitError = A::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::Response, Cfg, Error = A::Error, InitError = A::InitError>,
Cfg: Clone,
type Future = AndThenServiceFactoryResponse<A, B, Req, Cfg>
type Future = AndThenServiceFactoryResponse<A, B, Req, Cfg>
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
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, Req, Cfg, 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, 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
