Struct ntex_util::services::variant::VariantFactory3   
source · pub struct VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R> { /* private fields */ }Implementations§
source§impl<V1, V1C, V2, V3, V1R, V2R, V3R> VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R>where
    V1: ServiceFactory<V1R, V1C>,
 
impl<V1, V1C, V2, V3, V1R, V2R, V3R> VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R>where
    V1: ServiceFactory<V1R, V1C>,
sourcepub 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§
source§impl<V1: Clone, V1C, V2: Clone, V3: Clone, V1R, V2R, V3R> Clone for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R>
 
impl<V1: Clone, V1C, V2: Clone, V3: Clone, V1R, V2R, V3R> Clone for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R>
source§impl<V1: Debug, V1C, V2: Debug, V3: Debug, V1R, V2R, V3R> Debug for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R>
 
impl<V1: Debug, V1C, V2: Debug, V3: Debug, V1R, V2R, V3R> Debug for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R>
source§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 Response = <V1 as ServiceFactory<V1R, V1C>>::Response
 
type Response = <V1 as ServiceFactory<V1R, V1C>>::Response
Responses given by the created services.
§type Error = <V1 as ServiceFactory<V1R, V1C>>::Error
 
type Error = <V1 as ServiceFactory<V1R, V1C>>::Error
Errors produced by the created services.
§type Service = VariantService3<<V1 as ServiceFactory<V1R, V1C>>::Service, <V2 as ServiceFactory<V2R, V1C>>::Service, <V3 as ServiceFactory<V3R, V1C>>::Service, V1R, V2R, V3R>
 
type Service = VariantService3<<V1 as ServiceFactory<V1R, V1C>>::Service, <V2 as ServiceFactory<V2R, V1C>>::Service, <V3 as ServiceFactory<V3R, V1C>>::Service, V1R, V2R, V3R>
The kind of 
Service created by this factory.§type InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError
 
type InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError
Errors potentially raised while building a service.
source§async fn create(&self, cfg: V1C) -> Result<Self::Service, Self::InitError>
 
async fn create(&self, cfg: V1C) -> Result<Self::Service, Self::InitError>
Create and return a new service value asynchronously.
source§async fn pipeline(
    &self,
    cfg: Cfg
) -> Result<Pipeline<Self::Service>, Self::InitError>where
    Self: Sized,
 
async fn pipeline(
    &self,
    cfg: Cfg
) -> Result<Pipeline<Self::Service>, Self::InitError>where
    Self: Sized,
Create and return a new service value asynchronously and wrap into a container
source§fn map<F, Res>(
    self,
    f: F
) -> ServiceChainFactory<MapFactory<Self, F, Req, Res, Cfg>, Req, Cfg>
 
fn map<F, Res>( self, f: F ) -> ServiceChainFactory<MapFactory<Self, F, Req, Res, Cfg>, Req, Cfg>
Map this service’s output to a different type, returning a new service
of the resulting type.
source§fn map_err<F, E>(
    self,
    f: F
) -> ServiceChainFactory<MapErrFactory<Self, Req, Cfg, F, E>, Req, Cfg>
 
fn map_err<F, E>( self, f: F ) -> ServiceChainFactory<MapErrFactory<Self, Req, Cfg, F, E>, Req, Cfg>
Map this service’s error to a different error, returning a new service.
source§fn map_init_err<F, E>(
    self,
    f: F
) -> ServiceChainFactory<MapInitErr<Self, Req, Cfg, F, E>, Req, Cfg>
 
fn map_init_err<F, E>( self, f: F ) -> ServiceChainFactory<MapInitErr<Self, Req, Cfg, F, E>, Req, Cfg>
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>
impl<V1, V1C, V2, V3, V1R, V2R, V3R> Sync for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R>
impl<V1, V1C, V2, V3, V1R, V2R, V3R> Unpin for VariantFactory3<V1, V1C, V2, V3, V1R, V2R, V3R>
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§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, Req, Cfg> IntoServiceFactory<T, Req, Cfg> for Twhere
    T: ServiceFactory<Req, Cfg>,
 
impl<T, Req, Cfg> IntoServiceFactory<T, Req, Cfg> for Twhere
    T: ServiceFactory<Req, Cfg>,
source§fn into_factory(self) -> T
 
fn into_factory(self) -> T
Convert 
Self to a ServiceFactory