embassy-nrf

Crates

git

Versions

nrf52811

Flavors

Trait Channel

Source
pub trait Channel:
    PeripheralType
    + SealedChannel
    + Into<AnyChannel>
    + Sized
    + 'static {
    // Required method
    fn number(&self) -> usize;
}
Expand description

GPIOTE channel trait.

Implemented by all GPIOTE channels.

Required Methods§

Source

fn number(&self) -> usize

Get the channel number.

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§