Struct SendError

pub struct SendError<T>(pub T);

An error returned from the Sender::send or SyncSender::send function on channels.

A send operation can only fail if the receiving end of a channel is disconnected, implying that the data could never be received. The error contains the data being sent as a payload so it can be recovered.

Fields

0: T

Trait Implementations

impl<T> Debug for SendError<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T> Display for SendError<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T> Error for SendError<T>

impl<T: Clone> Clone for SendError<T>

fn clone(&self) -> SendError<T>

impl<T: Copy> Copy for SendError<T>

impl<T: Eq> Eq for SendError<T>

fn assert_fields_are_eq(&self)

impl<T: PartialEq> PartialEq for SendError<T>

fn eq(&self, other: &SendError<T>) -> bool

impl<T: PartialEq> StructuralPartialEq for SendError<T>

Auto Trait Implementations

impl<T> Freeze for SendError<T> where T: Freeze,

impl<T> RefUnwindSafe for SendError<T> where T: RefUnwindSafe,

impl<T> Send for SendError<T> where T: Send,

impl<T> Sync for SendError<T> where T: Sync,

impl<T> Unpin for SendError<T> where T: Unpin,

impl<T> UnsafeUnpin for SendError<T> where T: UnsafeUnpin,

impl<T> UnwindSafe for SendError<T> where T: UnwindSafe,

Blanket Implementations

impl<T> Any for SendError<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for SendError<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for SendError<T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for SendError<T> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for SendError<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Printable for SendError<T> where T: Copy + Debug,

impl<T> SizeHint for SendError<T> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for SendError<T>

impl<T> ToOwned for SendError<T> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for SendError<T> where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for SendError<T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for SendError<T> where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for SendError<T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>