pub enum Sender {
Serialize(ErrorKind),
Write(WriteError),
Closed(AlreadyClosed),
}
Expand description
Error sending a message to a Sender
.
Variants§
Serialize(ErrorKind)
Write(WriteError)
Failed to write to a Sender
.
Closed(AlreadyClosed)
Sender
is closed.
Trait Implementations§
§impl Error for Sender
impl Error for Sender
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<AlreadyClosed> for Sender
impl From<AlreadyClosed> for Sender
§fn from(source: AlreadyClosed) -> Sender
fn from(source: AlreadyClosed) -> Sender
Converts to this type from the input type.
§impl From<WriteError> for Sender
impl From<WriteError> for Sender
§fn from(source: WriteError) -> Sender
fn from(source: WriteError) -> Sender
Converts to this type from the input type.