Enum maitake_sync::wait_map::WaitError
source · #[non_exhaustive]pub enum WaitError {
Closed,
AlreadyConsumed,
NeverAdded,
Duplicate,
}
Expand description
Errors returned by WaitMap::wait
, indicating a failed wake.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Closed
AlreadyConsumed
The received data has already been extracted
NeverAdded
Duplicate
The WaitMap
already had an item matching the given
key
Trait Implementations§
source§impl Error for WaitError
Available on crate feature core-error
only.
impl Error for WaitError
Available on crate feature
core-error
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 WaitError
impl PartialEq for WaitError
impl Copy for WaitError
impl Eq for WaitError
impl StructuralEq for WaitError
impl StructuralPartialEq for WaitError
Auto Trait Implementations§
impl RefUnwindSafe for WaitError
impl Send for WaitError
impl Sync for WaitError
impl Unpin for WaitError
impl UnwindSafe for WaitError
Blanket Implementations§
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