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 moresourceimpl 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
sourcefn cmp(&self, other: &ClearInterruptLineError) -> Ordering
fn cmp(&self, other: &ClearInterruptLineError) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ClearInterruptLineError> for ClearInterruptLineError
impl PartialEq<ClearInterruptLineError> for ClearInterruptLineError
sourcefn eq(&self, other: &ClearInterruptLineError) -> bool
fn eq(&self, other: &ClearInterruptLineError) -> bool
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>
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 moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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