Struct ntex::util::variant::Variant [−][src]
pub struct Variant<A, AR, AC> { /* fields omitted */ }
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
Auto Trait Implementations
impl<A, AR, AC> RefUnwindSafe for Variant<A, AR, AC> where
A: RefUnwindSafe,
AC: RefUnwindSafe,
AR: RefUnwindSafe,
impl<A, AR, AC> UnwindSafe for Variant<A, AR, AC> where
A: UnwindSafe,
AC: UnwindSafe,
AR: 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