Enum ntex::util::variant::Variant5 [−][src]
pub enum Variant5<V1R, V2R, V3R, V4R, V5R> {
V1(V1R),
V2(V2R),
V3(V3R),
V4(V4R),
V5(V5R),
}
Variants
V1(V1R)
V2(V2R)
V3(V3R)
V4(V4R)
V5(V5R)
Trait Implementations
impl<V1, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> Service<Variant5<V1R, V2R, V3R, V4R, V5R>> for VariantService5<V1, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> where
V1: Service<V1R>,
V2: Service<V2R, Response = <V1 as Service<V1R>>::Response, Error = <V1 as Service<V1R>>::Error>,
V3: Service<V3R, Response = <V1 as Service<V1R>>::Response, Error = <V1 as Service<V1R>>::Error>,
V4: Service<V4R, Response = <V1 as Service<V1R>>::Response, Error = <V1 as Service<V1R>>::Error>,
V5: Service<V5R, Response = <V1 as Service<V1R>>::Response, Error = <V1 as Service<V1R>>::Error>,
impl<V1, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> Service<Variant5<V1R, V2R, V3R, V4R, V5R>> for VariantService5<V1, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> where
V1: Service<V1R>,
V2: Service<V2R, Response = <V1 as Service<V1R>>::Response, Error = <V1 as Service<V1R>>::Error>,
V3: Service<V3R, Response = <V1 as Service<V1R>>::Response, Error = <V1 as Service<V1R>>::Error>,
V4: Service<V4R, Response = <V1 as Service<V1R>>::Response, Error = <V1 as Service<V1R>>::Error>,
V5: Service<V5R, Response = <V1 as Service<V1R>>::Response, Error = <V1 as Service<V1R>>::Error>,
The future response value.
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <VariantService5<V1, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> as Service<Variant5<V1R, V2R, V3R, V4R, V5R>>>::Error>>
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <VariantService5<V1, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> as Service<Variant5<V1R, V2R, V3R, V4R, V5R>>>::Error>>
Returns Ready
when the service is able to process requests. Read more
Shutdown service. Read more
Process the request and return the response asynchronously. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
impl<V1, V1C, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> ServiceFactory<Variant5<V1R, V2R, V3R, V4R, V5R>, V1C> for VariantFactory5<V1, V1C, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> where
V1C: Clone,
V2: ServiceFactory<V2R, V1C, Response = <V1 as ServiceFactory<V1R, V1C>>::Response, Error = <V1 as ServiceFactory<V1R, V1C>>::Error, InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError>,
V3: ServiceFactory<V3R, V1C, Response = <V1 as ServiceFactory<V1R, V1C>>::Response, Error = <V1 as ServiceFactory<V1R, V1C>>::Error, InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError>,
V4: ServiceFactory<V4R, V1C, Response = <V1 as ServiceFactory<V1R, V1C>>::Response, Error = <V1 as ServiceFactory<V1R, V1C>>::Error, InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError>,
V5: ServiceFactory<V5R, V1C, Response = <V1 as ServiceFactory<V1R, V1C>>::Response, Error = <V1 as ServiceFactory<V1R, V1C>>::Error, InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError>,
V1: ServiceFactory<V1R, V1C>,
impl<V1, V1C, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> ServiceFactory<Variant5<V1R, V2R, V3R, V4R, V5R>, V1C> for VariantFactory5<V1, V1C, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> where
V1C: Clone,
V2: ServiceFactory<V2R, V1C, Response = <V1 as ServiceFactory<V1R, V1C>>::Response, Error = <V1 as ServiceFactory<V1R, V1C>>::Error, InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError>,
V3: ServiceFactory<V3R, V1C, Response = <V1 as ServiceFactory<V1R, V1C>>::Response, Error = <V1 as ServiceFactory<V1R, V1C>>::Error, InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError>,
V4: ServiceFactory<V4R, V1C, Response = <V1 as ServiceFactory<V1R, V1C>>::Response, Error = <V1 as ServiceFactory<V1R, V1C>>::Error, InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError>,
V5: ServiceFactory<V5R, V1C, Response = <V1 as ServiceFactory<V1R, V1C>>::Response, Error = <V1 as ServiceFactory<V1R, V1C>>::Error, InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError>,
V1: ServiceFactory<V1R, V1C>,
type Response = <V1 as ServiceFactory<V1R, V1C>>::Response
type Response = <V1 as ServiceFactory<V1R, V1C>>::Response
Responses given by the service
type Error = <V1 as ServiceFactory<V1R, V1C>>::Error
type Error = <V1 as ServiceFactory<V1R, V1C>>::Error
Errors produced by the service
type InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError
type InitError = <V1 as ServiceFactory<V1R, V1C>>::InitError
Errors produced while building a service.
type Service = VariantService5<<V1 as ServiceFactory<V1R, V1C>>::Service, <V2 as ServiceFactory<V2R, V1C>>::Service, <V3 as ServiceFactory<V3R, V1C>>::Service, <V4 as ServiceFactory<V4R, V1C>>::Service, <V5 as ServiceFactory<V5R, V1C>>::Service, V1R, V2R, V3R, V4R, V5R>
type Service = VariantService5<<V1 as ServiceFactory<V1R, V1C>>::Service, <V2 as ServiceFactory<V2R, V1C>>::Service, <V3 as ServiceFactory<V3R, V1C>>::Service, <V4 as ServiceFactory<V4R, V1C>>::Service, <V5 as ServiceFactory<V5R, V1C>>::Service, V1R, V2R, V3R, V4R, V5R>
The Service
value created by this factory
type Future = ServiceFactoryResponse<V1, V1C, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R>
type Future = ServiceFactoryResponse<V1, V1C, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R>
The future of the ServiceFactory
instance.
pub fn new_service(
&self,
cfg: V1C
) -> <VariantFactory5<V1, V1C, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> as ServiceFactory<Variant5<V1R, V2R, V3R, V4R, V5R>, V1C>>::Future
pub fn new_service(
&self,
cfg: V1C
) -> <VariantFactory5<V1, V1C, V2, V3, V4, V5, V1R, V2R, V3R, V4R, V5R> as ServiceFactory<Variant5<V1R, V2R, V3R, V4R, V5R>, V1C>>::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<V1R, V2R, V3R, V4R, V5R> RefUnwindSafe for Variant5<V1R, V2R, V3R, V4R, V5R> where
V1R: RefUnwindSafe,
V2R: RefUnwindSafe,
V3R: RefUnwindSafe,
V4R: RefUnwindSafe,
V5R: RefUnwindSafe,
impl<V1R, V2R, V3R, V4R, V5R> Send for Variant5<V1R, V2R, V3R, V4R, V5R> where
V1R: Send,
V2R: Send,
V3R: Send,
V4R: Send,
V5R: Send,
impl<V1R, V2R, V3R, V4R, V5R> Sync for Variant5<V1R, V2R, V3R, V4R, V5R> where
V1R: Sync,
V2R: Sync,
V3R: Sync,
V4R: Sync,
V5R: Sync,
impl<V1R, V2R, V3R, V4R, V5R> Unpin for Variant5<V1R, V2R, V3R, V4R, V5R> where
V1R: Unpin,
V2R: Unpin,
V3R: Unpin,
V4R: Unpin,
V5R: Unpin,
impl<V1R, V2R, V3R, V4R, V5R> UnwindSafe for Variant5<V1R, V2R, V3R, V4R, V5R> where
V1R: UnwindSafe,
V2R: UnwindSafe,
V3R: UnwindSafe,
V4R: UnwindSafe,
V5R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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