Enum r3_core::kernel::ClearInterruptLineError
source · #[repr(i8)]
pub enum ClearInterruptLineError {
NotSupported,
BadParam,
BadObjectState,
}
Expand description
Error type for InterruptLine::clear
.
See ResultCode
for all result codes and generic descriptions.
Variants§
NotSupported
Clearing a pending flag is not supported by the kernel.
BadParam
Clearing the pending flag of the specified interrupt line is not supported.
BadObjectState
The interrupt line is not configured to allow this operation. For example, this operation is invalid for an level-triggered interrupt line.
A kernel is not required to detect this condition.
Trait Implementations§
source§impl Clone for ClearInterruptLineError
impl Clone for ClearInterruptLineError
source§fn clone(&self) -> ClearInterruptLineError
fn clone(&self) -> ClearInterruptLineError
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 ClearInterruptLineError
impl Debug for ClearInterruptLineError
source§impl From<ClearInterruptLineError> for ResultCode
impl From<ClearInterruptLineError> for ResultCode
source§fn from(x: ClearInterruptLineError) -> Self
fn from(x: ClearInterruptLineError) -> Self
Converts to this type from the input type.
source§impl Hash for ClearInterruptLineError
impl Hash for ClearInterruptLineError
source§impl Ord for ClearInterruptLineError
impl Ord for ClearInterruptLineError
source§fn cmp(&self, other: &ClearInterruptLineError) -> Ordering
fn cmp(&self, other: &ClearInterruptLineError) -> 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<ClearInterruptLineError> for ClearInterruptLineError
impl PartialEq<ClearInterruptLineError> for ClearInterruptLineError
source§fn eq(&self, other: &ClearInterruptLineError) -> bool
fn eq(&self, other: &ClearInterruptLineError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ClearInterruptLineError> for ClearInterruptLineError
impl PartialOrd<ClearInterruptLineError> for ClearInterruptLineError
source§fn partial_cmp(&self, other: &ClearInterruptLineError) -> Option<Ordering>
fn partial_cmp(&self, other: &ClearInterruptLineError) -> 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