Enum r3_core::kernel::SleepError
source · #[repr(i8)]
pub enum SleepError {
BadContext,
Interrupted,
BadParam,
}
Expand description
Error type for Kernel::sleep
.
See ResultCode
for all result codes and generic descriptions.
Variants§
BadContext
CPU Lock is active, or the current context is not waitable.
Interrupted
BadParam
The duration is negative.
Trait Implementations§
source§impl Clone for SleepError
impl Clone for SleepError
source§fn clone(&self) -> SleepError
fn clone(&self) -> SleepError
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 SleepError
impl Debug for SleepError
source§impl From<SleepError> for ResultCode
impl From<SleepError> for ResultCode
source§fn from(x: SleepError) -> Self
fn from(x: SleepError) -> Self
Converts to this type from the input type.
source§impl Hash for SleepError
impl Hash for SleepError
source§impl Ord for SleepError
impl Ord for SleepError
source§fn cmp(&self, other: &SleepError) -> Ordering
fn cmp(&self, other: &SleepError) -> 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<SleepError> for SleepError
impl PartialEq<SleepError> for SleepError
source§fn eq(&self, other: &SleepError) -> bool
fn eq(&self, other: &SleepError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SleepError> for SleepError
impl PartialOrd<SleepError> for SleepError
source§fn partial_cmp(&self, other: &SleepError) -> Option<Ordering>
fn partial_cmp(&self, other: &SleepError) -> 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