pub enum MergedItem<I1, I2> {
First(I1),
Second(I2),
Both(I1, I2),
}
👎Deprecated: functionality provided by
select
nowExpand description
An item returned from a merge stream, which represents an item from one or both of the underlying streams.
Variants§
First(I1)
👎Deprecated: functionality provided by
select
nowAn item from the first stream
Second(I2)
👎Deprecated: functionality provided by
select
nowAn item from the second stream
Both(I1, I2)
👎Deprecated: functionality provided by
select
nowItems from both streams
Trait Implementations§
Auto Trait Implementations§
impl<I1, I2> Freeze for MergedItem<I1, I2>
impl<I1, I2> RefUnwindSafe for MergedItem<I1, I2>where
I1: RefUnwindSafe,
I2: RefUnwindSafe,
impl<I1, I2> Send for MergedItem<I1, I2>
impl<I1, I2> Sync for MergedItem<I1, I2>
impl<I1, I2> Unpin for MergedItem<I1, I2>
impl<I1, I2> UnwindSafe for MergedItem<I1, I2>where
I1: UnwindSafe,
I2: 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