pub enum Watched2<A, B> {
A(A),
B(B),
}Expand description
One item of a merged stream: which stream it came from (the variant, in the tuple’s order) and that stream’s own item.
Variants§
Implementations§
Trait Implementations§
impl<A: Copy, B: Copy> Copy for Watched2<A, B>
impl<A: Eq, B: Eq> Eq for Watched2<A, B>
Source§impl<A: Fallible, B: Fallible> Fallible for Watched2<A, B>
impl<A: Fallible, B: Fallible> Fallible for Watched2<A, B>
fn is_failure(&self) -> bool
impl<A: PartialEq, B: PartialEq> StructuralPartialEq for Watched2<A, B>
Auto Trait Implementations§
impl<A, B> Forget for Watched2<A, B>
impl<A, B> Freeze for Watched2<A, B>
impl<A, B> RefUnwindSafe for Watched2<A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<A, B> Send for Watched2<A, B>
impl<A, B> Sync for Watched2<A, B>
impl<A, B> Unpin for Watched2<A, B>
impl<A, B> UnsafeUnpin for Watched2<A, B>where
A: UnsafeUnpin,
B: UnsafeUnpin,
impl<A, B> UnwindSafe for Watched2<A, B>where
A: UnwindSafe,
B: 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