Enum wasmtime::WaitResult
source · 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
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 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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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