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§
- Priority
Channel - A bounded channel for communicating between asynchronous tasks with backpressure.
- Receive
Future - Future returned by
PriorityChannel::receive
andReceiver::receive
. - Receiver
- Receive-only access to a
PriorityChannel
. - Send
Future - Future returned by
PriorityChannel::send
andSender::send
. - Sender
- Send-only access to a
PriorityChannel
.
Enums§
Traits§
- Kind
- The binary heap kind: min-heap or max-heap