Trait concurrency_traits::Queue[][src]

pub trait Queue: TryQueue {
    fn push(&self, value: Self::Item);
fn pop(&self) -> Self::Item; }

A generic queue that can push and pop in FIFO order

Required methods

fn push(&self, value: Self::Item)[src]

Appends an item to the end of the queue blocking until appended

fn pop(&self) -> Self::Item[src]

Blocks until an item is received from the queue

Loading content...

Implementors

impl<T: ?Sized> Queue for T where
    T: Deref,
    T::Target: Queue
[src]

Loading content...