pub enum Received<C, U> {
Control(C),
User(U),
UserLaneClosed,
}Expand description
The item handed back by Consumer::recv, tagged by its lane.
Variants§
Control(C)
A control-lane item.
User(U)
A user-lane item.
UserLaneClosed
The user lane is TERMINALLY closed: every UserSender is gone and
the ring is drained. Delivered EXACTLY ONCE, in the user stream’s
FIFO position (after the last user item), subject to the same
control-first priority and aging as a user item. Terminal by
construction: no UserSender source exists besides channel()
and Clone, so a zero count can never rise again.
Trait Implementations§
impl<C: Copy, U: Copy> Copy for Received<C, U>
impl<C: Eq, U: Eq> Eq for Received<C, U>
impl<C, U> StructuralPartialEq for Received<C, U>
Auto Trait Implementations§
impl<C, U> Freeze for Received<C, U>
impl<C, U> RefUnwindSafe for Received<C, U>where
C: RefUnwindSafe,
U: RefUnwindSafe,
impl<C, U> Send for Received<C, U>
impl<C, U> Sync for Received<C, U>
impl<C, U> Unpin for Received<C, U>
impl<C, U> UnsafeUnpin for Received<C, U>where
C: UnsafeUnpin,
U: UnsafeUnpin,
impl<C, U> UnwindSafe for Received<C, U>where
C: UnwindSafe,
U: 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