Enum 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: Debug, B: Debug> Debug for Either<A, B>
[src]
[+]
impl<A: Debug, B: Debug> Debug for Either<A, B>
impl<A, B> ActorFuture for Either<A, B> where
A: ActorFuture,
B: ActorFuture<Item = A::Item, Error = A::Error, Actor = A::Actor>,
[src]
[+]
impl<A, B> ActorFuture for Either<A, B> where
A: ActorFuture,
B: ActorFuture<Item = A::Item, Error = A::Error, Actor = A::Actor>,