Struct crossbeam_channel::SendError [−][src]
pub struct SendError<T>(pub T);
Expand description
An error returned from the send
method.
The message could not be sent because the channel is disconnected.
The error contains the message so it can be recovered.
Implementations
Unwraps the message.
Examples
use crossbeam_channel::unbounded; let (s, r) = unbounded(); drop(r); if let Err(err) = s.send("foo") { assert_eq!(err.into_inner(), "foo"); }
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for SendError<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for SendError<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more