Struct mpmcpq::PriorityQueue[][src]

pub struct PriorityQueue<K, P> where
    K: Send,
    P: PartialOrd + Default + Ord
{ /* fields omitted */ }
Expand description

A queue which orders entrys by priority

Implementations

Create a new PriorityQueue

Inserts all elements from the stash to the PriorityQueue, empties stash.

Pushes an message with prio onto the queue, uses a Stash as temporary storage when the queue is contended. Drains the stash in the uncontended case.

Returns the smallest entry from a queue. This entry is wraped in a ReceiveGuard/Message

Try to get the smallest entry from a queue. Will return Some when a message is available.

Returns the smallest entry from a queue.

Try to get the smallest entry from a queue. Will return Some when a message is available.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a 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 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.