queue

Function queue 

Source
pub fn queue<Q: 'static + QueueModel + Send + Sync>(queue: Q) -> QueuePair<Q>
Expand description

Creates a new send-receive pair together representing a message-passing queue, based on the given underlying queue structure. Panics on failure; see try_queue.