Enum wasmtime_runtime::WaitResult
source · pub enum WaitResult {
Ok,
Mismatch,
TimedOut,
}
Expand description
Result of Memory::atomic_wait32
and Memory::atomic_wait64
Variants§
Ok
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
Indicates that wait
did not complete and instead returned due to the
value in memory not matching the expected value.
TimedOut
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<WaitResult> for WaitResult
impl PartialEq<WaitResult> for WaitResult
source§fn eq(&self, other: &WaitResult) -> bool
fn eq(&self, other: &WaitResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WaitResult
impl Eq for WaitResult
impl StructuralEq for WaitResult
impl StructuralPartialEq for WaitResult
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.