Struct ntex::util::variant::VariantFactory3 [−][src]
pub struct VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> { /* fields omitted */ }
Implementations
impl<V1, V1C, V2, V3, V1R, V2R, V3R> VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: ServiceFactory<V1R, V1C>,
V1C: Clone,
impl<V1, V1C, V2, V3, V1R, V2R, V3R> VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: ServiceFactory<V1R, V1C>,
V1C: Clone,
pub fn v4<V4, V4R, F>(
self,
factory: F
) -> VariantFactory4<V1, V1C, V2, V3, V4, V1R, V2R, V3R, V4R> where
V4: ServiceFactory<V4R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>,
F: IntoServiceFactory<V4, V4R, V1C>,
pub fn v4<V4, V4R, F>(
self,
factory: F
) -> VariantFactory4<V1, V1C, V2, V3, V4, V1R, V2R, V3R, V4R> where
V4: ServiceFactory<V4R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>,
F: IntoServiceFactory<V4, V4R, V1C>,
Convert to a Variant with more request types
Trait Implementations
impl<V1, V1C, V2, V3, V1R, V2R, V3R> ServiceFactory<Variant3<V1R, V2R, V3R>, V1C> for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: ServiceFactory<V1R, V1C>,
V1C: Clone,
V2: ServiceFactory<V2R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>,
V3: ServiceFactory<V3R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>,
impl<V1, V1C, V2, V3, V1R, V2R, V3R> ServiceFactory<Variant3<V1R, V2R, V3R>, V1C> for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: ServiceFactory<V1R, V1C>,
V1C: Clone,
V2: ServiceFactory<V2R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>,
V3: ServiceFactory<V3R, V1C, Response = V1::Response, Error = V1::Error, InitError = V1::InitError>,
type Service = VariantService3<V1::Service, V2::Service, V3::Service, V1R, V2R, V3R>
type Service = VariantService3<V1::Service, V2::Service, V3::Service, V1R, V2R, V3R>
The Service
value created by this factory
type Future = ServiceFactoryResponse<V1, V1C, V2, V3, V1R, V2R, V3R>
type Future = ServiceFactoryResponse<V1, V1C, V2, V3, V1R, V2R, V3R>
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<V1, V1C, V2, V3, V1R, V2R, V3R> RefUnwindSafe for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: RefUnwindSafe,
V1C: RefUnwindSafe,
V1R: RefUnwindSafe,
V2: RefUnwindSafe,
V2R: RefUnwindSafe,
V3: RefUnwindSafe,
V3R: RefUnwindSafe,
impl<V1, V1C, V2, V3, V1R, V2R, V3R> Send for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: Send,
V1C: Send,
V1R: Send,
V2: Send,
V2R: Send,
V3: Send,
V3R: Send,
impl<V1, V1C, V2, V3, V1R, V2R, V3R> Sync for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: Sync,
V1C: Sync,
V1R: Sync,
V2: Sync,
V2R: Sync,
V3: Sync,
V3R: Sync,
impl<V1, V1C, V2, V3, V1R, V2R, V3R> Unpin for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: Unpin,
V1C: Unpin,
V1R: Unpin,
V2: Unpin,
V2R: Unpin,
V3: Unpin,
V3R: Unpin,
impl<V1, V1C, V2, V3, V1R, V2R, V3R> UnwindSafe for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> where
V1: UnwindSafe,
V1C: UnwindSafe,
V1R: UnwindSafe,
V2: UnwindSafe,
V2R: UnwindSafe,
V3: UnwindSafe,
V3R: 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