Trait NvicInterruptRegistration

Source
pub trait NvicInterruptRegistration<T: InterruptNumber>: InterruptRegistration {
    const INTERRUPT_NUMBER: T;

    // Provided method
    fn number(&self) -> T { ... }
}
Expand description

An NVIC interrupt registration.

The proc-macro take_nvic_interrupt should be used to create an implementor of this trait.

Required Associated Constants§

Source

const INTERRUPT_NUMBER: T

The interrupt number that this NvicInterruptRegistration is associated with.

Provided Methods§

Source

fn number(&self) -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§