pub trait ChannelInterrupt: Into<AnyChannel> {
type Interrupt: Interrupt;
// Provided method
fn degrade(
self,
_irq: impl Binding<Self::Interrupt, InterruptHandler<Self>>,
) -> AnyChannel { ... }
}Expand description
This trait provides the interrupt type and handler for a DMA channel. It is automatically implemented for all DMA channel peripherals.
Required Associated Types§
Provided Methods§
Sourcefn degrade(
self,
_irq: impl Binding<Self::Interrupt, InterruptHandler<Self>>,
) -> AnyChannel
fn degrade( self, _irq: impl Binding<Self::Interrupt, InterruptHandler<Self>>, ) -> AnyChannel
Degrade this channel to a type-erased AnyChannel, verifying interrupt binding.
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.