pub struct RadioLinkStatistics {
pub link_quality: f32,
pub uplink_rate: f32,
pub downlink_rate: f32,
pub radio_send_rate: f32,
pub avg_retries: f32,
pub power_detector_rate: f32,
pub rssi: Option<f32>,
}Expand description
Radio link statistics snapshot
Contains metrics about the radio link quality collected over the last measurement window. Only available for radio connections (not USB).
Fields§
§link_quality: f32ACK success rate (0.0 to 1.0). Ratio of acknowledged packets to total packets sent.
uplink_rate: f32Data packets sent per second (excludes null/keepalive packets)
downlink_rate: f32Packets received per second (non-empty ACK payloads)
radio_send_rate: f32Total radio packets sent per second (data + null/keepalive packets)
avg_retries: f32Average number of retries per acknowledged packet (0 = first attempt always succeeds)
power_detector_rate: f32Fraction of ACKs where the nRF24 power detector triggered (0.0 to 1.0)
rssi: Option<f32>Average RSSI in dBm measured by the radio dongle on received ACK packets.
None if the radio doesn’t support RSSI.
Trait Implementations§
Source§impl Clone for RadioLinkStatistics
impl Clone for RadioLinkStatistics
Source§fn clone(&self) -> RadioLinkStatistics
fn clone(&self) -> RadioLinkStatistics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RadioLinkStatistics
impl Debug for RadioLinkStatistics
Source§impl Default for RadioLinkStatistics
impl Default for RadioLinkStatistics
Source§fn default() -> RadioLinkStatistics
fn default() -> RadioLinkStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RadioLinkStatistics
impl RefUnwindSafe for RadioLinkStatistics
impl Send for RadioLinkStatistics
impl Sync for RadioLinkStatistics
impl Unpin for RadioLinkStatistics
impl UnsafeUnpin for RadioLinkStatistics
impl UnwindSafe for RadioLinkStatistics
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