Struct crossbeam_channel::SelectSendError
[−]
[src]
pub struct SelectSendError<T>(pub T);
An error returned from the Select::send
method.
This error occurs when the selection case doesn't send a message into the channel. Note that cases enumerated in a selection loop are sometimes simply skipped, so they might fail even if the channel is currently not full.
Methods
impl<T> SelectSendError<T>
[src]
fn into_inner(self) -> T
[src]
Unwraps the value.
Examples
use crossbeam_channel::{unbounded, Select}; let (tx, rx) = unbounded(); let mut msg = "message".to_string(); let mut sel = Select::new(); loop { if let Err(err) = sel.send(&tx, msg) { msg = err.into_inner(); } else { break; } }
Trait Implementations
impl<T: PartialEq> PartialEq for SelectSendError<T>
[src]
fn eq(&self, __arg_0: &SelectSendError<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SelectSendError<T>) -> bool
[src]
This method tests for !=
.
impl<T: Eq> Eq for SelectSendError<T>
[src]
impl<T: Clone> Clone for SelectSendError<T>
[src]
fn clone(&self) -> SelectSendError<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for SelectSendError<T>
[src]
impl<T: Send> Debug for SelectSendError<T>
[src]
impl<T: Send> Display for SelectSendError<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more