pub struct Variant<A, AR, AC> { /* private fields */ }Expand description
Combine multiple different service types into a single service.
Implementations
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>,
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