Enum WaitError
pub enum WaitError {
SenderDropped,
}Expand description
等待未取得值时的明确原因。
放弃等待本身不会生成此错误;此错误表达有效交值方无值结束。
Variants§
SenderDropped
对应交值句柄(sender handle)已无值释放。
对任一等待(wait_any),表示全部有效交值方均无值退出; 对全部等待(wait_all),只表示结果向量(Vec)中的当前登记位置。
Trait Implementations§
impl Copy for WaitError
impl Eq for WaitError
Source§impl Error for WaitError
impl Error for WaitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for WaitError
Auto Trait Implementations§
impl Forget for WaitError
impl Freeze for WaitError
impl Move for WaitError
impl RefUnwindSafe for WaitError
impl Send for WaitError
impl Sync for WaitError
impl Unpin for WaitError
impl UnsafeUnpin for WaitError
impl UnwindSafe for WaitError
Blanket Implementations§
impl<T> Attachment for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.