pub enum WaitResult {
Ok = 0,
Mismatch = 1,
TimedOut = 2,
}Expand description
Result of Memory::atomic_wait32 and Memory::atomic_wait64
Variants§
Ok = 0
Indicates that a wait completed by being awoken by a different thread.
This means the thread went to sleep and didn’t time out.
Mismatch = 1
Indicates that wait did not complete and instead returned due to the
value in memory not matching the expected value.
TimedOut = 2
Indicates that wait completed with a timeout, meaning that the
original value matched as expected but nothing ever called notify.
Trait Implementations§
Source§impl Clone for WaitResult
impl Clone for WaitResult
Source§fn clone(&self) -> WaitResult
fn clone(&self) -> WaitResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitResult
impl Debug for WaitResult
Source§impl PartialEq for WaitResult
impl PartialEq for WaitResult
impl Copy for WaitResult
impl Eq for WaitResult
impl StructuralPartialEq for WaitResult
Auto Trait Implementations§
impl Freeze for WaitResult
impl RefUnwindSafe for WaitResult
impl Send for WaitResult
impl Sync for WaitResult
impl Unpin for WaitResult
impl UnwindSafe for WaitResult
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more