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