Module priority_channel

Source
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§

PriorityChannel
A bounded channel for communicating between asynchronous tasks with backpressure.
ReceiveFuture
Future returned by PriorityChannel::receive and Receiver::receive.
Receiver
Receive-only access to a PriorityChannel.
SendFuture
Future returned by PriorityChannel::send and Sender::send.
Sender
Send-only access to a PriorityChannel.

Enums§

Max
Max-heap
Min
Min-heap

Traits§

Kind
The binary heap kind: min-heap or max-heap