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.
Object Safety§
This trait is not object safe.