Struct std::sync::mpsc::SendError1.0.0[][src]

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.

Trait Implementations

impl<T: PartialEq> PartialEq for SendError<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for SendError<T>
[src]

impl<T: Clone> Clone for SendError<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy> Copy for SendError<T>
[src]

impl<T> Debug for SendError<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Display for SendError<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Send> Error for SendError<T>
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl<T> From<SendError<T>> for TrySendError<T>
1.24.0
[src]

Performs the conversion.

Auto Trait Implementations

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

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