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