pub struct HumInfo {
pub freq_hz: f64,
pub harmonics: Vec<usize>,
pub relative_db: f64,
pub level_db: f64,
}Expand description
Mains hum found by detect_hum.
Fields§
§freq_hz: f6450 or 60 Hz.
harmonics: Vec<usize>Harmonics (1 = fundamental) that stand out from their neighbourhood.
relative_db: f64Hum power relative to the total signal power (dB).
level_db: f64Hum level (dBFS, sine-referenced).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HumInfo
impl RefUnwindSafe for HumInfo
impl Send for HumInfo
impl Sync for HumInfo
impl Unpin for HumInfo
impl UnsafeUnpin for HumInfo
impl UnwindSafe for HumInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more