Expand description
A queue for sending values between asynchronous tasks.
Similar to a Channel
, however PriorityChannel
sifts higher priority items to the front of the queue.
Priority is determined by the Ord
trait. Priority behavior is determined by the Kind
parameter of the channel.
Structs§
- A bounded channel for communicating between asynchronous tasks with backpressure.
- Future returned by
PriorityChannel::receive
andReceiver::receive
. - Receive-only access to a
PriorityChannel
. - Future returned by
PriorityChannel::send
andSender::send
. - Send-only access to a
PriorityChannel
.
Enums§
- Max-heap
- Min-heap
Traits§
- The binary heap kind: min-heap or max-heap