pub struct SendError<M> {
pub msg: M,
pub reason: SendErrorReason,
}
Expand description
An error returned from a Sender::send()
or Sender::try_send()
call.
Fields§
§msg: M
The message that failed to send.
reason: SendErrorReason
The reason for this error.
Trait Implementations§
Source§impl<M> Error for SendError<M>
impl<M> Error for SendError<M>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<M: Copy> Copy for SendError<M>
Auto Trait Implementations§
impl<M> Freeze for SendError<M>where
M: Freeze,
impl<M> RefUnwindSafe for SendError<M>where
M: RefUnwindSafe,
impl<M> Send for SendError<M>where
M: Send,
impl<M> Sync for SendError<M>where
M: Sync,
impl<M> Unpin for SendError<M>where
M: Unpin,
impl<M> UnwindSafe for SendError<M>where
M: UnwindSafe,
Blanket Implementations§
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