pub struct QualityScore {
pub value: f32,
pub reasons: Vec<String>,
}Expand description
Computed usability confidence for a frame, in [0.0, 1.0].
Starts at 1.0 and accrues multiplicative penalties for: out-of-range
(but non-fatal) RSSI, near-zero amplitude (dead subcarriers), excessive
amplitude spikes, and missing optional metadata that the profile implies
should be present.
Fields§
§value: f32The final score.
reasons: Vec<String>Human-readable reasons it was reduced (empty when value == 1.0).
Trait Implementations§
Source§impl Clone for QualityScore
impl Clone for QualityScore
Source§fn clone(&self) -> QualityScore
fn clone(&self) -> QualityScore
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 QualityScore
impl Debug for QualityScore
Source§impl PartialEq for QualityScore
impl PartialEq for QualityScore
Source§fn eq(&self, other: &QualityScore) -> bool
fn eq(&self, other: &QualityScore) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QualityScore
Auto Trait Implementations§
impl Freeze for QualityScore
impl RefUnwindSafe for QualityScore
impl Send for QualityScore
impl Sync for QualityScore
impl Unpin for QualityScore
impl UnsafeUnpin for QualityScore
impl UnwindSafe for QualityScore
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