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]
impl<T> ProduceError<T>
Trait Implementations
impl<T: Copy> Copy for ProduceError<T>
[src]
impl<T: Copy> Copy for ProduceError<T>
impl<T: Clone> Clone for ProduceError<T>
[src]
impl<T: Clone> Clone for ProduceError<T>
fn clone(&self) -> 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[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq for ProduceError<T>
[src]
impl<T: PartialEq> PartialEq for ProduceError<T>
fn eq(&self, other: &ProduceError<T>) -> bool
[src]
fn eq(&self, other: &ProduceError<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ProduceError<T>) -> bool
[src]
fn ne(&self, other: &ProduceError<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for ProduceError<T>
[src]
impl<T: Eq> Eq for ProduceError<T>
impl<T> Error for ProduceError<T>
[src]
impl<T> Error for ProduceError<T>
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl<T> Debug for ProduceError<T>
[src]
impl<T> Debug for ProduceError<T>
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Display for ProduceError<T>
[src]
impl<T> Display for ProduceError<T>
Auto Trait Implementations
impl<T> Send for ProduceError<T> where
T: Send,
impl<T> Send for ProduceError<T> where
T: Send,
impl<T> Sync for ProduceError<T> where
T: Sync,
impl<T> Sync for ProduceError<T> where
T: Sync,