pub struct SendError<T>(pub T);
An error returned from the send
function on channels.
A send
operation can only fail if the receiving end of a channel is disconnected, implying that the data could never be received. The error contains the data being sent as a payload so it can be recovered.
impl<T: PartialEq> PartialEq for SendError<T>
[src]
fn eq(&self, __arg_0: &SendError<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SendError<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for SendError<T>
[src]
impl<T: Clone> Clone for SendError<T>
[src]
fn clone(&self) -> SendError<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: Copy> Copy for SendError<T>
[src]
impl<T> Debug for SendError<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter.
impl<T> Display for SendError<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter.
impl<T: Send> Error for SendError<T>
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/sync/mpsc/struct.SendError.html