Struct crtq::Consumer[][src]

pub struct Consumer<T>(_, _);

A consumer for an unbounded MPMC wait-free queue.

Methods

impl<T> Consumer<T>
[src]

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

This method returns Err if the queue is empty.

Attempts to clone this consumer.

Trait Implementations

impl<T: Debug> Debug for Consumer<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Clone for Consumer<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Drop for Consumer<T>
[src]

Executes the destructor for this type. Read more

impl<T> Send for Consumer<T> where
    T: Send
[src]

Auto Trait Implementations

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