Struct SendError

pub struct SendError<T>(pub T);

Error returned by the send function on a Sender.

A send operation can only fail if there are no active receivers, implying that the message could never be received. The error contains the message being sent as a payload so it can be recovered.

Fields

0: T

Trait Implementations

impl<T> Display for SendError<T>

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

impl<T: Debug> Debug for SendError<T>

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

impl<T: Debug> Error 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> From<T> for SendError<T>

fn from(t: T) -> T

Returns the argument unchanged.

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 = never;
fn try_from(value: U) -> Result<T, never>

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>