pub struct AudioRenderCapacityEvent {
pub timestamp: f64,
pub average_load: f64,
pub peak_load: f64,
pub underrun_ratio: f64,
pub event: Event,
}
Expand description
Performance metrics of the rendering thread
Fields§
§timestamp: f64
The start time of the data collection period in terms of the associated AudioContext’s currentTime
average_load: f64
An average of collected load values over the given update interval
peak_load: f64
A maximum value from collected load values over the given update interval.
underrun_ratio: f64
A ratio between the number of buffer underruns and the total number of system-level audio callbacks over the given update interval.
event: Event
Inherits from this base Event
Trait Implementations§
Source§impl Clone for AudioRenderCapacityEvent
impl Clone for AudioRenderCapacityEvent
Source§fn clone(&self) -> AudioRenderCapacityEvent
fn clone(&self) -> AudioRenderCapacityEvent
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for AudioRenderCapacityEvent
impl RefUnwindSafe for AudioRenderCapacityEvent
impl Send for AudioRenderCapacityEvent
impl Sync for AudioRenderCapacityEvent
impl Unpin for AudioRenderCapacityEvent
impl UnwindSafe for AudioRenderCapacityEvent
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