embassy-stm32

Crates

git

Versions

stm32f051r8

Flavors

Binding

Trait Binding 

Source
pub unsafe trait Binding<I: Interrupt, H: Handler<I>>: Copy { }
Expand description

Compile-time assertion that an interrupt has been bound to a handler.

For the vast majority of cases, you should use the bind_interrupts! macro instead of writing unsafe impls of this trait.

§Safety

By implementing this trait, you are asserting that you have arranged for H::on_interrupt() to be called every time the I interrupt fires.

This allows drivers to check bindings at compile-time.

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§