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
fn poll(&self) -> Option<T>
Retrieves and removes the head of this queue or returns None if the queue is empty.
fn is_empty(&self) -> bool
Returns true if the underlying data structure does not contain any elements.
fn offer(&self, e: T) -> Result<(), T>
Implementors
impl<T: Delayed + Send> Queue<T> for DelayQueue<T>
impl<T: Send> Queue<T> for LinkedQueue<T>