GeezerVison is showing doc.rust-lang.org — SendError in std::sync::mpsc - Rust Struct SendError 1.0.0 · Source pub struct SendError<T>(pub T);
Expand descriptionAn 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.
Tuple Fields§§0: TTrait Implementations§
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns the lower-level source of this error, if any. Read more
👎Deprecated since 1.42.0: use the Display impl or to_string()
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
🔬This is a nightly-only experimental API. (error_generic_member_access #99301) Provides type-based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts a SendError<T> into a TrySendError<T>.
This conversion always returns a TrySendError::Disconnected containing the data in the SendError<T>.
No data is allocated on the heap.
Auto Trait Implementations§Blanket Implementations§
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬This is a nightly-only experimental API. (clone_to_uninit #126799) Performs copy-assignment from self to dest. Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion. |