pub trait Channel:
Peripheral<P = Self>
+ SealedChannel
+ Into<AnyChannel>
+ Sized
+ 'static {
// Required method
fn number(&self) -> u8;
// Provided methods
fn regs(&self) -> Channel { ... }
fn degrade(self) -> AnyChannel { ... }
}
Expand description
DMA channel interface.
Required Methods§
Provided Methods§
Sourcefn degrade(self) -> AnyChannel
fn degrade(self) -> AnyChannel
Convert into type-erased AnyChannel.
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.