pub struct SendError<T>(pub T);展开描述
由 Sender::send 返回的错误。
Tuple Fields§
§0: Ttrait 实现§
源代码§impl<T> Error for SendError<T>
impl<T> Error for SendError<T>
源代码§impl<T> From<SendError<T>> for TrySendError<T>
impl<T> From<SendError<T>> for TrySendError<T>
源代码§fn from(src: SendError<T>) -> TrySendError<T>
fn from(src: SendError<T>) -> TrySendError<T>
从输入类型转换为此类型。
impl<T: Copy> Copy for SendError<T>
impl<T: Eq> Eq for SendError<T>
impl<T> StructuralPartialEq for SendError<T>
自动 trait 实现§
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 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. 更多信息