pub enum Variant3<V1R, V2R, V3R> {
V1(V1R),
V2(V2R),
V3(V3R),
}Variants
V1(V1R)
V2(V2R)
V3(V3R)
Trait Implementations
sourceimpl<V1, V2, V3, V1R, V2R, V3R> Service<Variant3<V1R, V2R, V3R>> for VariantService3<V1, V2, V3, V1R, V2R, V3R> where
V1: Service<V1R>,
V2: Service<V2R, Response = V1::Response, Error = V1::Error>,
V3: Service<V3R, Response = V1::Response, Error = V1::Error>,
impl<V1, V2, V3, V1R, V2R, V3R> Service<Variant3<V1R, V2R, V3R>> for VariantService3<V1, V2, V3, V1R, V2R, V3R> where
V1: Service<V1R>,
V2: Service<V2R, Response = V1::Response, Error = V1::Error>,
V3: Service<V3R, Response = V1::Response, Error = V1::Error>,
sourcefn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns Ready when the service is able to process requests. Read more
sourcefn poll_shutdown(&self, cx: &mut Context<'_>, is_error: bool) -> Poll<()>
fn poll_shutdown(&self, cx: &mut Context<'_>, is_error: bool) -> Poll<()>
Shutdown service. Read more
sourcefn call(&self, req: Variant3<V1R, V2R, V3R>) -> Self::Future
fn call(&self, req: Variant3<V1R, V2R, V3R>) -> Self::Future
Process the request and return the response asynchronously. Read more
sourceimpl<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.
sourcefn new_service(&self, cfg: V1C) -> Self::Future
fn new_service(&self, cfg: V1C) -> Self::Future
Create and return a new service value asynchronously.
sourcefn map<F, Res>(self, f: F) -> MapServiceFactory<Self, F, Req, Res, Cfg> where
F: FnMut(Self::Response) -> Res + Clone,
fn map<F, Res>(self, f: F) -> MapServiceFactory<Self, F, Req, Res, Cfg> where
F: FnMut(Self::Response) -> Res + Clone,
Map this service’s output to a different type, returning a new service of the resulting type. Read more
sourcefn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, Req, Cfg, F, E> where
F: Fn(Self::Error) -> E + Clone,
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, Req, Cfg, F, E> where
F: Fn(Self::Error) -> E + Clone,
Map this service’s error to a different error, returning a new service.
sourcefn 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> RefUnwindSafe for Variant3<V1R, V2R, V3R> where
V1R: RefUnwindSafe,
V2R: RefUnwindSafe,
V3R: RefUnwindSafe,
impl<V1R, V2R, V3R> Send for Variant3<V1R, V2R, V3R> where
V1R: Send,
V2R: Send,
V3R: Send,
impl<V1R, V2R, V3R> Sync for Variant3<V1R, V2R, V3R> where
V1R: Sync,
V2R: Sync,
V3R: Sync,
impl<V1R, V2R, V3R> Unpin for Variant3<V1R, V2R, V3R> where
V1R: Unpin,
V2R: Unpin,
V3R: Unpin,
impl<V1R, V2R, V3R> UnwindSafe for Variant3<V1R, V2R, V3R> where
V1R: UnwindSafe,
V2R: UnwindSafe,
V3R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more