Struct async_priority_channel::Receiver [−][src]
pub struct Receiver<I, P> where
P: Ord, { /* fields omitted */ }Expand description
Receive side of the channel. Can be cloned.
Implementations
Attempts to receive a message from the channel.
If the channel is empty or closed, this method returns an error.
Receives a message from the channel.
If the channel is empty, this method waits until there is a message.
If the channel is closed, this method receives a message or returns an error if there are no more messages.
Closes the channel and notifies all blocked operations.
Returns true if this call has closed the channel and it was not closed already.
Returns the number of receivers for the channel.
Returns the number of senders for the channel.
Trait Implementations
Auto Trait Implementations
impl<I, P> RefUnwindSafe for Receiver<I, P>
impl<I, P> UnwindSafe for Receiver<I, P>
Blanket Implementations
Mutably borrows from an owned value. Read more