pub struct PriorityReceiver<T> { /* private fields */ }Expand description
Receiver half of a priority channel (not cloneable).
Implementations§
Source§impl<T> PriorityReceiver<T>
impl<T> PriorityReceiver<T>
Sourcepub async fn recv(&mut self) -> Option<PrioritizedItem<T>>
pub async fn recv(&mut self) -> Option<PrioritizedItem<T>>
Receive the next item, highest priority first.
Returns None when all senders have been dropped and every queue is
empty — i.e. the channel is closed and fully drained.
Auto Trait Implementations§
impl<T> Freeze for PriorityReceiver<T>
impl<T> RefUnwindSafe for PriorityReceiver<T>
impl<T> Send for PriorityReceiver<T>where
T: Send,
impl<T> Sync for PriorityReceiver<T>where
T: Send,
impl<T> Unpin for PriorityReceiver<T>
impl<T> UnsafeUnpin for PriorityReceiver<T>
impl<T> UnwindSafe for PriorityReceiver<T>
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