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