pub struct RadioRxInfo {
pub rssi_dbm: Option<i16>,
pub snr_cb: Option<i16>,
pub lqi: Option<NonZeroU8>,
pub self_tx: bool,
}Expand description
What arrived with one frame handed to Session::on_radio_rx.
The signal fields are optional because not every frame the session sees was received: a frame the device transmitted itself comes back with nothing measured, and inventing a reading for it would put a number the radio never produced on the wire to the host.
Fields§
§rssi_dbm: Option<i16>§snr_cb: Option<i16>§lqi: Option<NonZeroU8>§self_tx: boolThe device transmitted this frame and is delivering its own copy.
Implementations§
Trait Implementations§
Source§impl Clone for RadioRxInfo
impl Clone for RadioRxInfo
Source§fn clone(&self) -> RadioRxInfo
fn clone(&self) -> RadioRxInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RadioRxInfo
impl Debug for RadioRxInfo
Source§impl Default for RadioRxInfo
impl Default for RadioRxInfo
Source§fn default() -> RadioRxInfo
fn default() -> RadioRxInfo
Returns the “default value” for a type. Read more
Source§impl PartialEq for RadioRxInfo
impl PartialEq for RadioRxInfo
impl Copy for RadioRxInfo
impl Eq for RadioRxInfo
impl StructuralPartialEq for RadioRxInfo
Auto Trait Implementations§
impl Freeze for RadioRxInfo
impl RefUnwindSafe for RadioRxInfo
impl Send for RadioRxInfo
impl Sync for RadioRxInfo
impl Unpin for RadioRxInfo
impl UnwindSafe for RadioRxInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)