Trait syncbox::Queue [] [src]

pub trait Queue<T: Send> {
    fn poll(&self) -> Option<T>;
    fn is_empty(&self) -> bool;
    fn offer(&self, e: T) -> Result<(), T>;
}

Required Methods

Retrieves and removes the head of this queue or returns None if the queue is empty.

Returns true if the underlying data structure does not contain any elements.

Implementors