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

pub struct Producer<T>(_);

A producer for a bounded SPSC wait-free queue.


impl<T> Producer<T>

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.

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 Producer<T>

Formats the value using the given formatter. Read more

impl<T> Drop for Producer<T>

Executes the destructor for this type. Read more

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

Auto Trait Implementations

impl<T> !Sync for Producer<T>