#[non_exhaustive]pub struct Stats {Show 16 fields
pub state: State,
pub reason: Reason,
pub lead: Duration,
pub target: Duration,
pub stalls: u32,
pub reprimes: u32,
pub last_stall_depth: Duration,
pub longest_freeze: Duration,
pub est: JitterEstimate,
pub clock_regressions: u32,
pub discontinuities: u32,
pub hints_seen: u32,
pub events_dropped: u32,
pub input_degraded: bool,
pub window_overflows: u32,
pub limiting_track: Option<u32>,
}Expand description
Controller statistics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: StateCurrent state.
reason: ReasonReason of the most recent non-playing period (Startup initially);
meaningful only while state != Playing.
lead: DurationSigned lead at the last tick (negative: the clock ran ahead of the media).
target: DurationCurrent target.
stalls: u32Underrun pauses (not the first fill, discontinuities or re-primes).
reprimes: u32Voluntary re-primes.
last_stall_depth: DurationStall-memory peak when the last stall ended.
longest_freeze: DurationLongest pause (Pause to Resume).
est: JitterEstimateEstimator outputs.
clock_regressions: u32Arrival/tick clock regressions seen (clamped or ignored).
discontinuities: u32Baseline resets.
hints_seen: u32Hints received.
events_dropped: u32Events lost to queue overflow.
input_degraded: boolBetween InputDegraded and InputRecovered.
window_overflows: u32Minimum-window entries dropped by the cap.
limiting_track: Option<u32>With two or more tracks known: the track currently bounding the media
end (the one that would starve first); None otherwise.
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Forget for Stats
impl Freeze for Stats
impl Move for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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