[][src]Trait radio::State

pub trait State {
    type State;
    type Error;
    fn set_state(&mut self, state: Self::State) -> Result<(), Self::Error>;
fn get_state(&mut self) -> Result<Self::State, Self::Error>; }

State trait for configuring radio states

Associated Types

type State

Channel information

type Error

Radio error type

Loading content...

Required methods

fn set_state(&mut self, state: Self::State) -> Result<(), Self::Error>

Set the radio to a specified state

fn get_state(&mut self) -> Result<Self::State, Self::Error>

Fetch the current radio state

Loading content...

Implementors

impl<St, Reg, Ch, Inf, Irq, E> State 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
[src]

type State = St

type Error = E

Loading content...