Skip to main content

ListenerStats

Struct ListenerStats 

Source
pub struct ListenerStats {
Show 14 fields pub frames_received: u64, pub media_locked: u64, pub media_unlocked: u64, pub interrupted: u64, pub sequence_mismatches: u64, pub unsupported_formats: u64, pub late: u64, pub early: u64, pub socket_drops: u64, pub locked: bool, pub realtime: bool, pub drift_ppm: i32, pub device_underruns: u64, pub playout: Option<(i64, i64)>,
}
Expand description

A listener’s counters (Milan 1.3, Table 5.10).

Fields§

§frames_received: u64§media_locked: u64§media_unlocked: u64§interrupted: u64§sequence_mismatches: u64§unsupported_formats: u64§late: u64§early: u64§socket_drops: u64

Frames the socket had no room for, its thread behind: not Milan’s, but what tells a stream’s frames lost here from lost on the way.

§locked: bool

Frames are arriving.

§realtime: bool

The thread taking the frames runs real time.

§drift_ppm: i32

How far the audio device’s clock runs from gPTP’s, in parts per million.

§device_underruns: u64

Times the audio device found nothing to play.

§playout: Option<(i64, i64)>

How long after its presentation time each sample plays, once the device has said when it plays, and how far from that the last chunk played, in nanoseconds.

Trait Implementations§

Source§

impl Clone for ListenerStats

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ListenerStats

Source§

impl Debug for ListenerStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ListenerStats

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for ListenerStats

Source§

impl PartialEq for ListenerStats

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ListenerStats

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.