pub struct CpuLoad {
pub average: f32,
pub peak: f32,
}Expand description
CPU load of a playing source, typically accessed via the source’s playback handle.
Fields§
§average: f32Average CPU load over the measurement interval. A value of 1.0 means the source took as much CPU time as the duration of the audio it produced.
peak: f32Peak CPU load observed during the last measurement interval.
Trait Implementations§
impl Copy for CpuLoad
Auto Trait Implementations§
impl Freeze for CpuLoad
impl RefUnwindSafe for CpuLoad
impl Send for CpuLoad
impl Sync for CpuLoad
impl Unpin for CpuLoad
impl UnwindSafe for CpuLoad
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