Enum InterruptError
pub enum InterruptError {
IntChannelAlreadyUsed,
NoIntChannelAvailable,
}
Available on crate feature
external-interrupts
only.Expand description
External interrupt-related errors.
Not all variants can happen on every HALs.
Variants§
IntChannelAlreadyUsed
On MCU families where interrupt channels are shared between multiple input GPIOs (e.g, STM32), signals that the interrupt channel is already used by another input GPIO.
NoIntChannelAvailable
On MCU families where there is a pool of interrupt channels, with fewer channels than input GPIOs, signals that no interrupt channel is left available.
Trait Implementations§
§impl Debug for InterruptError
impl Debug for InterruptError
§impl Format for InterruptError
impl Format for InterruptError
§impl From<InterruptError> for Error
impl From<InterruptError> for Error
§fn from(err: InterruptError) -> Error
fn from(err: InterruptError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InterruptError
impl RefUnwindSafe for InterruptError
impl Send for InterruptError
impl Sync for InterruptError
impl Unpin for InterruptError
impl UnwindSafe for InterruptError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more