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
sourceimpl Clone for ClearInterruptLineError
impl Clone for ClearInterruptLineError
sourcefn clone(&self) -> ClearInterruptLineError
fn clone(&self) -> ClearInterruptLineError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClearInterruptLineError
impl Debug for ClearInterruptLineError
sourceimpl From<ClearInterruptLineError> for ResultCode
impl From<ClearInterruptLineError> for ResultCode
sourcefn from(x: ClearInterruptLineError) -> Self
fn from(x: ClearInterruptLineError) -> Self
Converts to this type from the input type.
sourceimpl Hash for ClearInterruptLineError
impl Hash for ClearInterruptLineError
sourceimpl Ord for ClearInterruptLineError
impl Ord for ClearInterruptLineError
sourceimpl PartialOrd<ClearInterruptLineError> for ClearInterruptLineError
impl PartialOrd<ClearInterruptLineError> for ClearInterruptLineError
sourcefn partial_cmp(&self, other: &ClearInterruptLineError) -> Option<Ordering>
fn partial_cmp(&self, other: &ClearInterruptLineError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for ClearInterruptLineError
impl Eq for ClearInterruptLineError
impl StructuralEq for ClearInterruptLineError
impl StructuralPartialEq for ClearInterruptLineError
Auto Trait Implementations
impl RefUnwindSafe for ClearInterruptLineError
impl Send for ClearInterruptLineError
impl Sync for ClearInterruptLineError
impl Unpin for ClearInterruptLineError
impl UnwindSafe for ClearInterruptLineError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more