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§
source§impl Error for Sender
 
impl Error for Sender
source§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()
source§impl From<AlreadyClosed> for Sender
 
impl From<AlreadyClosed> for Sender
source§fn from(source: AlreadyClosed) -> Self
 
fn from(source: AlreadyClosed) -> Self
Converts to this type from the input type.
source§impl From<WriteError> for Sender
 
impl From<WriteError> for Sender
source§fn from(source: WriteError) -> Self
 
fn from(source: WriteError) -> Self
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