Enum r3_core::kernel::WaitSemaphoreError
source · #[repr(i8)]
pub enum WaitSemaphoreError {
NoAccess,
BadContext,
Interrupted,
}
Expand description
Error type for Semaphore::wait_one
.
See ResultCode
for all result codes and generic descriptions.
Variants§
NoAccess
Invalid object access.
BadContext
CPU Lock is active, or the current context is not waitable.
Interrupted
Trait Implementations§
source§impl Clone for WaitSemaphoreError
impl Clone for WaitSemaphoreError
source§fn clone(&self) -> WaitSemaphoreError
fn clone(&self) -> WaitSemaphoreError
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 WaitSemaphoreError
impl Debug for WaitSemaphoreError
source§impl From<WaitError> for WaitSemaphoreError
impl From<WaitError> for WaitSemaphoreError
source§impl From<WaitSemaphoreError> for ResultCode
impl From<WaitSemaphoreError> for ResultCode
source§fn from(x: WaitSemaphoreError) -> Self
fn from(x: WaitSemaphoreError) -> Self
Converts to this type from the input type.
source§impl Hash for WaitSemaphoreError
impl Hash for WaitSemaphoreError
source§impl Ord for WaitSemaphoreError
impl Ord for WaitSemaphoreError
source§fn cmp(&self, other: &WaitSemaphoreError) -> Ordering
fn cmp(&self, other: &WaitSemaphoreError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<WaitSemaphoreError> for WaitSemaphoreError
impl PartialEq<WaitSemaphoreError> for WaitSemaphoreError
source§fn eq(&self, other: &WaitSemaphoreError) -> bool
fn eq(&self, other: &WaitSemaphoreError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WaitSemaphoreError> for WaitSemaphoreError
impl PartialOrd<WaitSemaphoreError> for WaitSemaphoreError
source§fn partial_cmp(&self, other: &WaitSemaphoreError) -> Option<Ordering>
fn partial_cmp(&self, other: &WaitSemaphoreError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more