pub struct PhyStats {
pub switches: u64,
pub successful_switches: u64,
pub failed_switches: u64,
pub rssi_samples: u64,
pub time_in_le1m: u64,
pub time_in_le2m: u64,
pub time_in_coded: u64,
}Expand description
PHY controller statistics
Fields§
§switches: u64Number of PHY switches
successful_switches: u64Successful switches
failed_switches: u64Failed switches
rssi_samples: u64RSSI samples collected
time_in_le1m: u64Time spent in each PHY (arbitrary units)
time_in_le2m: u64Time in LE 2M
time_in_coded: u64Time in LE Coded
Implementations§
Source§impl PhyStats
impl PhyStats
Sourcepub fn success_rate(&self) -> f32
pub fn success_rate(&self) -> f32
Get switch success rate
Sourcepub fn record_time(&mut self, phy: BlePhy, time_units: u64)
pub fn record_time(&mut self, phy: BlePhy, time_units: u64)
Record time in current PHY
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PhyStats
impl RefUnwindSafe for PhyStats
impl Send for PhyStats
impl Sync for PhyStats
impl Unpin for PhyStats
impl UnwindSafe for PhyStats
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