pub enum SelectTwoOutput<T1, T2> {
First(T1),
Second(T2),
}Expand description
Output of selecting between two futures 两个future之间选择的输出
Variants§
First(T1)
The first future completed 第一个future完成了
Second(T2)
The second future completed 第二个future完成了
Trait Implementations§
Source§impl<T1: Clone, T2: Clone> Clone for SelectTwoOutput<T1, T2>
impl<T1: Clone, T2: Clone> Clone for SelectTwoOutput<T1, T2>
Source§fn clone(&self) -> SelectTwoOutput<T1, T2>
fn clone(&self) -> SelectTwoOutput<T1, T2>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T1: Copy, T2: Copy> Copy for SelectTwoOutput<T1, T2>
impl<T1: Eq, T2: Eq> Eq for SelectTwoOutput<T1, T2>
Source§impl<T1: PartialEq, T2: PartialEq> PartialEq for SelectTwoOutput<T1, T2>
impl<T1: PartialEq, T2: PartialEq> PartialEq for SelectTwoOutput<T1, T2>
Source§fn eq(&self, other: &SelectTwoOutput<T1, T2>) -> bool
fn eq(&self, other: &SelectTwoOutput<T1, T2>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T1, T2> StructuralPartialEq for SelectTwoOutput<T1, T2>
Auto Trait Implementations§
impl<T1, T2> Freeze for SelectTwoOutput<T1, T2>
impl<T1, T2> RefUnwindSafe for SelectTwoOutput<T1, T2>where
T1: RefUnwindSafe,
T2: RefUnwindSafe,
impl<T1, T2> Send for SelectTwoOutput<T1, T2>
impl<T1, T2> Sync for SelectTwoOutput<T1, T2>
impl<T1, T2> Unpin for SelectTwoOutput<T1, T2>
impl<T1, T2> UnsafeUnpin for SelectTwoOutput<T1, T2>where
T1: UnsafeUnpin,
T2: UnsafeUnpin,
impl<T1, T2> UnwindSafe for SelectTwoOutput<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