pub struct MeterUpdateNotification {
pub timestamp_us: u64,
pub left_peak: f32,
pub left_rms: f32,
pub right_peak: f32,
pub right_rms: f32,
}Expand description
Notification sent from audio binary to browser via dev server
Fields§
§timestamp_us: u64Timestamp in microseconds
left_peak: f32Left channel peak (linear scale)
left_rms: f32Left channel RMS (linear scale)
right_peak: f32Right channel peak (linear scale)
right_rms: f32Right channel RMS (linear scale)
Trait Implementations§
Source§impl Clone for MeterUpdateNotification
impl Clone for MeterUpdateNotification
Source§fn clone(&self) -> MeterUpdateNotification
fn clone(&self) -> MeterUpdateNotification
Returns a duplicate of the value. Read more
1.0.0 · 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 MeterUpdateNotification
impl Debug for MeterUpdateNotification
Source§impl<'de> Deserialize<'de> for MeterUpdateNotification
impl<'de> Deserialize<'de> for MeterUpdateNotification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MeterUpdateNotification
impl RefUnwindSafe for MeterUpdateNotification
impl Send for MeterUpdateNotification
impl Sync for MeterUpdateNotification
impl Unpin for MeterUpdateNotification
impl UnwindSafe for MeterUpdateNotification
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