pub trait State {
type State: RadioState;
type Error: Debug;
// Required methods
fn set_state(&mut self, state: Self::State) -> Result<(), Self::Error>;
fn get_state(&mut self) -> Result<Self::State, Self::Error>;
}
Expand description
State trait for configuring and reading radio states
Note that drivers will internally configure and read radio states to manage radio operations.