Enum r3_core::kernel::UnparkError
source · #[repr(i8)]
pub enum UnparkError {
BadContext,
NoAccess,
BadObjectState,
}
Expand description
Error type for Task::unpark
.
See ResultCode
for all result codes and generic descriptions.
Variants§
BadContext
CPU Lock is active.
NoAccess
Invalid object access.
BadObjectState
The task is in the Dormant state.
Trait Implementations§
source§impl Clone for UnparkError
impl Clone for UnparkError
source§fn clone(&self) -> UnparkError
fn clone(&self) -> UnparkError
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 UnparkError
impl Debug for UnparkError
source§impl From<UnparkError> for ResultCode
impl From<UnparkError> for ResultCode
source§fn from(x: UnparkError) -> Self
fn from(x: UnparkError) -> Self
Converts to this type from the input type.
source§impl Hash for UnparkError
impl Hash for UnparkError
source§impl Ord for UnparkError
impl Ord for UnparkError
source§fn cmp(&self, other: &UnparkError) -> Ordering
fn cmp(&self, other: &UnparkError) -> 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<UnparkError> for UnparkError
impl PartialEq<UnparkError> for UnparkError
source§fn eq(&self, other: &UnparkError) -> bool
fn eq(&self, other: &UnparkError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UnparkError> for UnparkError
impl PartialOrd<UnparkError> for UnparkError
source§fn partial_cmp(&self, other: &UnparkError) -> Option<Ordering>
fn partial_cmp(&self, other: &UnparkError) -> 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