Lines Matching full:either
1 //! Contains [`Either`] and related types and functions.
3 //! See [`Either`] documentation for more details.
18 /// [`Either`] is useful for handling conditional branching in service middleware
22 pub enum Either<A, B> { enum
29 impl<A, B, Request> Service<Request> for Either<A, B> implementation
38 type Future = Either<A::Future, B::Future>;
41 use self::Either::*; in poll_ready()
50 use self::Either::*; in call()
59 impl<A, B, T, AE, BE> Future for Either<A, B> implementation
76 impl<S, A, B> Layer<S> for Either<A, B> implementation
81 type Service = Either<A::Service, B::Service>;
85 Either::A(layer) => Either::A(layer.layer(inner)), in layer()
86 Either::B(layer) => Either::B(layer.layer(inner)), in layer()