pub fn either<A, B>(left: A, right: B) -> Either<A, B>
where
    A: ServiceFactory,
    A::Config: Clone,
    B: ServiceFactory<
        Config = A::Config,
        Response = A::Response,
        Error = A::Error,
        InitError = A::InitError,
    >,
{
    Either { left, right }
}
/// Construct `Either` service factory.
///
/// Either service allow to combine two different services into a single service.
Construct `Either` service factory.
Either service allow to combine two different services into a single service.
Construct ` Either ` service factory . Either service allow to combine two different services into a single service .
pub fn either<A, B>(left: A, right: B) -> Either<A, B>
where
    A: ServiceFactory,
    A::Config: Clone,
    B: ServiceFactory<
        Config = A::Config,
        Response = A::Response,
        Error = A::Error,
        InitError = A::InitError,
    >,
{
    Either { left, right }
}
pub fn either < A , B > ( left : A , right : B ) -> Either < A , B > where A : ServiceFactory , A :: Config : Clone , B : ServiceFactory < Config = A :: Config , Response = A :: Response , Error = A :: Error , InitError = A :: InitError , > , { Either { left , right } }
Construct `Either` service factory.
Construct ` Either ` service factory .
left
A
right
B