pub enum SendError<F: Serializer, E: Encoder<F::Output>> {
Serialize(F::Error),
Encode(E::Error),
}Expand description
An error while sending on a Sender.
Variants§
Serialize(F::Error)
An error occurred while attempting to serialize a value.
Encode(E::Error)
An error occurred while attempting to encode and transmit a serialized value as a frame.
Trait Implementations§
Source§impl<F, E> Error for SendError<F, E>
impl<F, E> Error for SendError<F, E>
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()
Auto Trait Implementations§
impl<F, E> Freeze for SendError<F, E>
impl<F, E> RefUnwindSafe for SendError<F, E>where
<F as Serializer>::Error: RefUnwindSafe,
<E as Encoder<<F as Serializer>::Output>>::Error: RefUnwindSafe,
impl<F, E> Send for SendError<F, E>
impl<F, E> Sync for SendError<F, E>
impl<F, E> Unpin for SendError<F, E>
impl<F, E> UnwindSafe for SendError<F, E>where
<F as Serializer>::Error: UnwindSafe,
<E as Encoder<<F as Serializer>::Output>>::Error: 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