#[repr(i8)]
pub enum SetInterruptLinePriorityError {
NotSupported,
BadContext,
BadParam,
}
Expand description
Error type for InterruptLine::set_priority
and
InterruptLine::set_priority_unchecked
.
See ResultCode
for all result codes and generic descriptions.
Variants§
NotSupported
The operation is not supported by the kernel.
BadContext
CPU Lock is active, or the current context is not a task context.
BadParam
The specified interrupt number or the specified priority value is out of range.
Trait Implementations§
source§impl Clone for SetInterruptLinePriorityError
impl Clone for SetInterruptLinePriorityError
source§fn clone(&self) -> SetInterruptLinePriorityError
fn clone(&self) -> SetInterruptLinePriorityError
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 From<SetInterruptLinePriorityError> for ResultCode
impl From<SetInterruptLinePriorityError> for ResultCode
source§fn from(x: SetInterruptLinePriorityError) -> Self
fn from(x: SetInterruptLinePriorityError) -> Self
Converts to this type from the input type.
source§impl Hash for SetInterruptLinePriorityError
impl Hash for SetInterruptLinePriorityError
source§impl Ord for SetInterruptLinePriorityError
impl Ord for SetInterruptLinePriorityError
source§fn cmp(&self, other: &SetInterruptLinePriorityError) -> Ordering
fn cmp(&self, other: &SetInterruptLinePriorityError) -> 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<SetInterruptLinePriorityError> for SetInterruptLinePriorityError
impl PartialEq<SetInterruptLinePriorityError> for SetInterruptLinePriorityError
source§fn eq(&self, other: &SetInterruptLinePriorityError) -> bool
fn eq(&self, other: &SetInterruptLinePriorityError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SetInterruptLinePriorityError> for SetInterruptLinePriorityError
impl PartialOrd<SetInterruptLinePriorityError> for SetInterruptLinePriorityError
source§fn partial_cmp(&self, other: &SetInterruptLinePriorityError) -> Option<Ordering>
fn partial_cmp(&self, other: &SetInterruptLinePriorityError) -> 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