Enum npnc::ProduceError[][src]

pub enum ProduceError<T> {
    Disconnected(T),
    Full(T),
}

Indicates the reason a produce operation rejected an item.

Variants

The queue had no remaining consumers.

The queue was full.

Methods

impl<T> ProduceError<T>
[src]

Returns the rejected item.

Trait Implementations

impl<T: Copy> Copy for ProduceError<T>
[src]

impl<T: Clone> Clone for ProduceError<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for ProduceError<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for ProduceError<T>
[src]

impl<T> Error for ProduceError<T>
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl<T> Debug for ProduceError<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Display for ProduceError<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

impl<T> Sync for ProduceError<T> where
    T: Sync