Struct SendError
pub struct SendError<T>(pub T);
Available on crate feature
sync only.Error returned by Sender::send.
Tuple Fields
0: TTrait Implementations
impl<T: Copy> Copy for SendError<T>
impl<T: Eq> Eq for SendError<T>
impl<T> Error for SendError<T>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl<T> From<SendError<T>> for TrySendError<T>
fn from(src: SendError<T>) -> TrySendError<T>
Converts to this type from the input type.
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> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneToUninit for Twhere T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> ToString for T
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/sync/mpsc/error/struct.SendError.html