pub trait Channel:
SealedChannel
+ Into<AnyChannel>
+ Sized
+ 'static {
// Required method
fn number(&self) -> usize;
// Provided method
fn degrade(self) -> AnyChannel { ... }
}
Expand description
GPIOTE channel trait.
Implemented by all GPIOTE channels.
Required Methods§
Provided Methods§
Sourcefn degrade(self) -> AnyChannel
fn degrade(self) -> AnyChannel
Convert this channel to a type-erased AnyChannel
.
This allows using several channels in situations that might require them to be the same type, like putting them in an array.
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.