Enum actix_web::actix::fut::Either [−][src]
Combines two different futures yielding the same item and error types into a single type.
Variants
A(A)
First branch of the type
B(B)
Second branch of the type
Methods
impl<T, A, B> Either<(T, A), (T, B)>
[src]
[−]
impl<T, A, B> Either<(T, A), (T, B)>
pub fn split(self) -> (T, Either<A, B>)
[src]
[−]
pub fn split(self) -> (T, Either<A, B>)
Splits out the homogeneous type from an either of tuples.
This method is typically useful when combined with the Future::select2
combinator.
Trait Implementations
impl<A, B> ActorFuture for Either<A, B> where
A: ActorFuture,
B: ActorFuture<Item = <A as ActorFuture>::Item, Error = <A as ActorFuture>::Error, Actor = <A as ActorFuture>::Actor>,
[src]
[+]
impl<A, B> ActorFuture for Either<A, B> where
A: ActorFuture,
B: ActorFuture<Item = <A as ActorFuture>::Item, Error = <A as ActorFuture>::Error, Actor = <A as ActorFuture>::Actor>,
impl<A, B> Debug for Either<A, B> where
A: Debug,
B: Debug,
[src]
[+]
impl<A, B> Debug for Either<A, B> where
A: Debug,
B: Debug,