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