Struct npnc::unbounded::spsc::Consumer [−][src]
pub struct Consumer<T>(_);
A consumer for an unbounded SPSC wait-free queue.
Methods
impl<T> Consumer<T>
[src]
impl<T> Consumer<T>
pub fn consume(&self) -> Result<T, ConsumeError>
[src]
pub fn consume(&self) -> Result<T, ConsumeError>
Attempts to remove and return the item at the front of the queue.
This method returns Err
if the queue is empty.
Trait Implementations
impl<T: Debug> Debug for Consumer<T>
[src]
impl<T: Debug> Debug for Consumer<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Drop for Consumer<T>
[src]
impl<T> Drop for Consumer<T>
impl<T> Send for Consumer<T> where
T: Send,
[src]
impl<T> Send for Consumer<T> where
T: Send,