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 whether the channel is closed

Return true if the channel is empty

Return true if the channel is full

Returns the number of messages in the channel.

Returns the channel capacity if it’s bounded.

Returns the number of receivers for the channel.

Returns the number of senders for the channel.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.