pub struct AudioSchedStats {
pub periods_completed: u64,
pub on_time_wakes: u64,
pub late_wakes: u64,
pub underruns: u64,
pub overruns: u64,
pub max_jitter_ns: u64,
pub min_jitter_ns: u64,
pub total_jitter_ns: u64,
pub last_wake_ns: u64,
pub next_expected_wake_ns: u64,
}Expand description
Statistics for a single audio thread’s scheduling behavior.
Fields§
§periods_completed: u64Total number of scheduling periods completed.
on_time_wakes: u64Number of times the thread was woken on time.
late_wakes: u64Number of times the thread was woken late (missed deadline).
underruns: u64Number of buffer underruns (thread did not fill buffer in time).
overruns: u64Number of buffer overruns (buffer full, data lost).
max_jitter_ns: u64Maximum observed scheduling jitter in nanoseconds.
min_jitter_ns: u64Minimum observed scheduling jitter in nanoseconds.
total_jitter_ns: u64Cumulative jitter (for computing average).
last_wake_ns: u64Last wake timestamp (nanoseconds since boot).
next_expected_wake_ns: u64Expected next wake timestamp.
Trait Implementations§
Source§impl Clone for AudioSchedStats
impl Clone for AudioSchedStats
Source§fn clone(&self) -> AudioSchedStats
fn clone(&self) -> AudioSchedStats
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioSchedStats
impl Debug for AudioSchedStats
Source§impl Default for AudioSchedStats
impl Default for AudioSchedStats
Source§fn default() -> AudioSchedStats
fn default() -> AudioSchedStats
Returns the “default value” for a type. Read more
impl Copy for AudioSchedStats
Auto Trait Implementations§
impl Freeze for AudioSchedStats
impl RefUnwindSafe for AudioSchedStats
impl Send for AudioSchedStats
impl Sync for AudioSchedStats
impl Unpin for AudioSchedStats
impl UnwindSafe for AudioSchedStats
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)