Enum SendErrorKind
pub enum SendErrorKind {
ReceiverClosed,
ValueAlreadyAccepted,
}Expand description
交值未被接受的原因。
原因描述本次交值许可,不推断放弃等待的更深层业务原因。
Variants§
ReceiverClosed
接收关闭先于本次交值许可;原值尚未转交。
ValueAlreadyAccepted
任一等待(wait_any)已有胜出交值方,即使其值尚未完成保存。
此原因只用于任一等待;后续关闭不会改写已成立的胜出事实。
Trait Implementations§
Source§impl Clone for SendErrorKind
impl Clone for SendErrorKind
Source§fn clone(&self) -> SendErrorKind
fn clone(&self) -> SendErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SendErrorKind
Source§impl Debug for SendErrorKind
impl Debug for SendErrorKind
Source§impl Display for SendErrorKind
impl Display for SendErrorKind
impl Eq for SendErrorKind
Source§impl Error for SendErrorKind
impl Error for SendErrorKind
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()
Source§impl PartialEq for SendErrorKind
impl PartialEq for SendErrorKind
impl StructuralPartialEq for SendErrorKind
Auto Trait Implementations§
impl Forget for SendErrorKind
impl Freeze for SendErrorKind
impl Move for SendErrorKind
impl RefUnwindSafe for SendErrorKind
impl Send for SendErrorKind
impl Sync for SendErrorKind
impl Unpin for SendErrorKind
impl UnsafeUnpin for SendErrorKind
impl UnwindSafe for SendErrorKind
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.