pub struct Variant<A, AR, AC> { /* private fields */ }Expand description
Combine multiple different service types into a single service.
Implementations§
source§impl<A, AR, AC> Variant<A, AR, AC>where
A: ServiceFactory<AR, AC>,
AC: Clone,
impl<A, AR, AC> Variant<A, AR, AC>where A: ServiceFactory<AR, AC>, AC: Clone,
sourcepub fn v2<B, BR, F>(self, factory: F) -> VariantFactory2<A, AC, B, AR, BR>where
B: ServiceFactory<BR, AC, Response = A::Response, Error = A::Error, InitError = A::InitError>,
F: IntoServiceFactory<B, BR, AC>,
pub fn v2<B, BR, F>(self, factory: F) -> VariantFactory2<A, AC, B, AR, BR>where B: ServiceFactory<BR, AC, Response = A::Response, Error = A::Error, InitError = A::InitError>, F: IntoServiceFactory<B, BR, AC>,
Convert to a Variant with two request types