pub struct SignalStrengthAverage { /* private fields */ }
Expand description
Tracks the moving average for signal strength given in dBm.
Implementations§
Source§impl SignalStrengthAverage
impl SignalStrengthAverage
pub fn new() -> Self
pub fn avg_dbm(&self) -> DecibelMilliWatt
pub fn avg_femto_watt(&self) -> FemtoWatt
pub fn add(&mut self, dbm: DecibelMilliWatt)
pub fn reset(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SignalStrengthAverage
impl RefUnwindSafe for SignalStrengthAverage
impl Send for SignalStrengthAverage
impl Sync for SignalStrengthAverage
impl Unpin for SignalStrengthAverage
impl UnwindSafe for SignalStrengthAverage
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