Struct crtq::Producer[][src]

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

A producer for an unbounded MPMC wait-free queue.

Methods

impl<T> Producer<T>
[src]

Attempts to add the supplied item to the back of the queue.

This method returns Err if the queue is full or has no remaining consumers.

Attempts to clone this producer.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Executes the destructor for this type. Read more

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

Auto Trait Implementations

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