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