Enum r3_core::kernel::WaitSemaphoreTimeoutError
source · #[repr(i8)]
pub enum WaitSemaphoreTimeoutError {
NoAccess,
BadContext,
Interrupted,
Timeout,
BadParam,
}
Expand description
Error type for Semaphore::wait_one_timeout
.
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
Timeout
BadParam
The timeout duration is negative.
Trait Implementations§
source§impl Clone for WaitSemaphoreTimeoutError
impl Clone for WaitSemaphoreTimeoutError
source§fn clone(&self) -> WaitSemaphoreTimeoutError
fn clone(&self) -> WaitSemaphoreTimeoutError
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 WaitSemaphoreTimeoutError
impl Debug for WaitSemaphoreTimeoutError
source§impl From<WaitSemaphoreTimeoutError> for ResultCode
impl From<WaitSemaphoreTimeoutError> for ResultCode
source§fn from(x: WaitSemaphoreTimeoutError) -> Self
fn from(x: WaitSemaphoreTimeoutError) -> Self
Converts to this type from the input type.
source§impl From<WaitTimeoutError> for WaitSemaphoreTimeoutError
impl From<WaitTimeoutError> for WaitSemaphoreTimeoutError
source§fn from(x: WaitTimeoutError) -> Self
fn from(x: WaitTimeoutError) -> Self
Converts to this type from the input type.
source§impl Hash for WaitSemaphoreTimeoutError
impl Hash for WaitSemaphoreTimeoutError
source§impl Ord for WaitSemaphoreTimeoutError
impl Ord for WaitSemaphoreTimeoutError
source§fn cmp(&self, other: &WaitSemaphoreTimeoutError) -> Ordering
fn cmp(&self, other: &WaitSemaphoreTimeoutError) -> 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<WaitSemaphoreTimeoutError> for WaitSemaphoreTimeoutError
impl PartialEq<WaitSemaphoreTimeoutError> for WaitSemaphoreTimeoutError
source§fn eq(&self, other: &WaitSemaphoreTimeoutError) -> bool
fn eq(&self, other: &WaitSemaphoreTimeoutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WaitSemaphoreTimeoutError> for WaitSemaphoreTimeoutError
impl PartialOrd<WaitSemaphoreTimeoutError> for WaitSemaphoreTimeoutError
source§fn partial_cmp(&self, other: &WaitSemaphoreTimeoutError) -> Option<Ordering>
fn partial_cmp(&self, other: &WaitSemaphoreTimeoutError) -> 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