pub enum Either<T1, T2> {
Left(T1),
Right(T2),
}
Expand description
The return value from the select
function, indicating which future
completed first.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T1, T2> Freeze for Either<T1, T2>
impl<T1, T2> RefUnwindSafe for Either<T1, T2>where
T1: RefUnwindSafe,
T2: RefUnwindSafe,
impl<T1, T2> Send for Either<T1, T2>
impl<T1, T2> Sync for Either<T1, T2>
impl<T1, T2> Unpin for Either<T1, T2>
impl<T1, T2> UnwindSafe for Either<T1, T2>where
T1: UnwindSafe,
T2: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more