pub enum SendTimeoutError<T> {
Timeout(T),
Closed(T),
}展开描述
由 Sender::send_timeout 返回的错误。
变体§
实现§
源代码§impl<T> SendTimeoutError<T>
impl<T> SendTimeoutError<T>
源代码pub fn into_inner(self) -> T
pub fn into_inner(self) -> T
消耗 SendTimeoutError,返回未发送的值。
trait 实现§
源代码§impl<T: Clone> Clone for SendTimeoutError<T>
impl<T: Clone> Clone for SendTimeoutError<T>
源代码§fn clone(&self) -> SendTimeoutError<T>
fn clone(&self) -> SendTimeoutError<T>
返回值的副本。 更多信息
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. 更多信息源代码§impl<T> Debug for SendTimeoutError<T>
Available on crate feature time only.
impl<T> Debug for SendTimeoutError<T>
Available on crate feature
time only.源代码§impl<T> Display for SendTimeoutError<T>
Available on crate feature time only.
impl<T> Display for SendTimeoutError<T>
Available on crate feature
time only.源代码§impl<T> Error for SendTimeoutError<T>
Available on crate feature time only.
impl<T> Error for SendTimeoutError<T>
Available on crate feature
time only.源代码§impl<T: PartialEq> PartialEq for SendTimeoutError<T>
impl<T: PartialEq> PartialEq for SendTimeoutError<T>
impl<T: Copy> Copy for SendTimeoutError<T>
impl<T: Eq> Eq for SendTimeoutError<T>
impl<T> StructuralPartialEq for SendTimeoutError<T>
自动 trait 实现§
impl<T> Freeze for SendTimeoutError<T>where
T: Freeze,
impl<T> RefUnwindSafe for SendTimeoutError<T>where
T: RefUnwindSafe,
impl<T> Send for SendTimeoutError<T>where
T: Send,
impl<T> Sync for SendTimeoutError<T>where
T: Sync,
impl<T> Unpin for SendTimeoutError<T>where
T: Unpin,
impl<T> UnsafeUnpin for SendTimeoutError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SendTimeoutError<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. 更多信息