pub struct ChannelSendError<T>(pub T);
Expand description
The error which is returned when sending a value into a channel fails.
The send
operation can only fail if the channel has been closed, which
would prevent the other actors to ever retrieve the value.
The error recovers the value that has been sent.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Debug> Debug for ChannelSendError<T>
impl<T: Debug> Debug for ChannelSendError<T>
Source§impl<T: PartialEq> PartialEq for ChannelSendError<T>
impl<T: PartialEq> PartialEq for ChannelSendError<T>
impl<T> StructuralPartialEq for ChannelSendError<T>
Auto Trait Implementations§
impl<T> Freeze for ChannelSendError<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChannelSendError<T>where
T: RefUnwindSafe,
impl<T> Send for ChannelSendError<T>where
T: Send,
impl<T> Sync for ChannelSendError<T>where
T: Sync,
impl<T> Unpin for ChannelSendError<T>where
T: Unpin,
impl<T> UnwindSafe for ChannelSendError<T>where
T: 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