pub trait LoraRadio {
type Error: Debug;
// Required methods
fn send(&mut self, payload: &[u8]) -> Result<(), Self::Error>;
fn recv(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>;
}Expand description
LoRa-style packet radio. Send/receive are independent so a half- duplex driver implements both methods.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".