Enum r3_core::kernel::EnableInterruptLineError
source · #[repr(i8)]
pub enum EnableInterruptLineError {
NotSupported,
BadParam,
}
Expand description
Error type for InterruptLine::enable
and InterruptLine::disable
.
See ResultCode
for all result codes and generic descriptions.
Variants§
NotSupported
The operation is not supported by the kernel.
BadParam
Enabling or disabling the specified interrupt line is not supported.
Trait Implementations§
source§impl Clone for EnableInterruptLineError
impl Clone for EnableInterruptLineError
source§fn clone(&self) -> EnableInterruptLineError
fn clone(&self) -> EnableInterruptLineError
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 EnableInterruptLineError
impl Debug for EnableInterruptLineError
source§impl From<EnableInterruptLineError> for ResultCode
impl From<EnableInterruptLineError> for ResultCode
source§fn from(x: EnableInterruptLineError) -> Self
fn from(x: EnableInterruptLineError) -> Self
Converts to this type from the input type.
source§impl Hash for EnableInterruptLineError
impl Hash for EnableInterruptLineError
source§impl Ord for EnableInterruptLineError
impl Ord for EnableInterruptLineError
source§fn cmp(&self, other: &EnableInterruptLineError) -> Ordering
fn cmp(&self, other: &EnableInterruptLineError) -> 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<EnableInterruptLineError> for EnableInterruptLineError
impl PartialEq<EnableInterruptLineError> for EnableInterruptLineError
source§fn eq(&self, other: &EnableInterruptLineError) -> bool
fn eq(&self, other: &EnableInterruptLineError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<EnableInterruptLineError> for EnableInterruptLineError
impl PartialOrd<EnableInterruptLineError> for EnableInterruptLineError
source§fn partial_cmp(&self, other: &EnableInterruptLineError) -> Option<Ordering>
fn partial_cmp(&self, other: &EnableInterruptLineError) -> 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