pub struct MockLoraRadio {
pub inbox: Vec<Vec<u8, MOCK_FRAME_CAP>, MOCK_QUEUE_CAP>,
pub outbox: Vec<Vec<u8, MOCK_FRAME_CAP>, MOCK_QUEUE_CAP>,
}Expand description
In-memory LoRa radio. Implements both send and recv against a pair
of FIFO buffers. Tests typically pre-load inbox and inspect
outbox after the unit under test runs.
Fields§
§inbox: Vec<Vec<u8, MOCK_FRAME_CAP>, MOCK_QUEUE_CAP>§outbox: Vec<Vec<u8, MOCK_FRAME_CAP>, MOCK_QUEUE_CAP>Implementations§
Trait Implementations§
Source§impl Debug for MockLoraRadio
impl Debug for MockLoraRadio
Source§impl Default for MockLoraRadio
impl Default for MockLoraRadio
Auto Trait Implementations§
impl Freeze for MockLoraRadio
impl RefUnwindSafe for MockLoraRadio
impl Send for MockLoraRadio
impl Sync for MockLoraRadio
impl Unpin for MockLoraRadio
impl UnsafeUnpin for MockLoraRadio
impl UnwindSafe for MockLoraRadio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more