Enum npnc::ProduceError
[−]
[src]
pub enum ProduceError<T> { Disconnected(T), Full(T), }
Indicates the reason a produce
operation rejected an item.
Variants
Disconnected(T)
The queue had no remaining consumers.
Full(T)
The queue was full.
Methods
impl<T> ProduceError<T>
[src]
fn item(self) -> T
Returns the rejected item.
Trait Implementations
impl<T: Copy> Copy for ProduceError<T>
[src]
impl<T: Clone> Clone for ProduceError<T>
[src]
fn clone(&self) -> ProduceError<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for ProduceError<T>
[src]
fn eq(&self, __arg_0: &ProduceError<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ProduceError<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for ProduceError<T>
[src]
impl<T> Error for ProduceError<T>
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more