Struct npnc::bounded::spsc::Consumer[][src]

pub struct Consumer<T>(_);

A consumer for a bounded SPSC wait-free queue.


impl<T> Consumer<T>

Attempts to remove and return the item at the front of the queue.

This method returns Err if the queue is empty.

Returns the number of items currently in the queue.

Returns whether the queue is currently empty.

Returns the maximum number of items the queue can contain.

Trait Implementations

impl<T: Debug> Debug for Consumer<T>

Formats the value using the given formatter. Read more

impl<T> Drop for Consumer<T>

Executes the destructor for this type. Read more

impl<T> Send for Consumer<T> where
    T: Send

Auto Trait Implementations

impl<T> !Sync for Consumer<T>