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.
Auto Trait Implementations§
impl !RefUnwindSafe for Sender
impl Send for Sender
impl Sync for Sender
impl Unpin for Sender
impl !UnwindSafe for Sender
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more