Skip to main content

Channel

Trait Channel 

Source
pub trait Channel {
    type Channel: Debug;
    type Error: Debug;

    // Required method
    fn set_channel(
        &mut self,
        channel: &Self::Channel,
    ) -> Result<(), Self::Error>;
}
Expand description

Channel trait for configuring radio channelization

Required Associated Types§

Source

type Channel: Debug

Channel information

Source

type Error: Debug

Radio error type

Required Methods§

Source

fn set_channel(&mut self, channel: &Self::Channel) -> Result<(), Self::Error>

Set the radio channel for future transmit and receive operations

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<St, Reg, Ch, Inf, Irq, E> Channel for Radio<St, Reg, Ch, Inf, Irq, E>
where St: PartialEq + Debug + Clone, Reg: PartialEq + Debug + Clone, Ch: PartialEq + Debug + Clone, Inf: PartialEq + Debug + Clone, Irq: PartialEq + Debug + Clone, E: PartialEq + Debug + Clone,

Source§

type Channel = Ch

Source§

type Error = E