pub struct RxMeta {
pub rssi_dbm: Option<i16>,
pub lqi: Option<NonZeroU8>,
pub snr_cb: Option<i16>,
}Expand description
Receive metadata for Recv on STR_PHY_RAW.
Each field has a wire-level “not supported” sentinel, mapped to
None here.
Fields§
§rssi_dbm: Option<i16>RSSI in dBm. On the wire this is the negated RSSI as a u8,
with 0xFF meaning unsupported, so only values in -254..=0
are representable; encode clamps to that range.
lqi: Option<NonZeroU8>Link-quality indicator, 1 (worst) to 255 (perfect).
snr_cb: Option<i16>Signal-to-noise ratio in centibels. The wire sentinel 0x8000
(i16::MIN, -3276.8 dB) means unsupported. No real link can
report that value, so every genuine measurement round-trips
without distortion.
Implementations§
Trait Implementations§
impl Copy for RxMeta
impl Eq for RxMeta
impl StructuralPartialEq for RxMeta
Auto Trait Implementations§
impl Freeze for RxMeta
impl RefUnwindSafe for RxMeta
impl Send for RxMeta
impl Sync for RxMeta
impl Unpin for RxMeta
impl UnwindSafe for RxMeta
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)