Skip to main content

MediaStats

Struct MediaStats 

Source
pub struct MediaStats {
Show 19 fields pub sent: AtomicU64, pub send_dropped: AtomicU64, pub received: AtomicU64, pub lost: AtomicU64, pub shed: AtomicU64, pub rebuilt: AtomicU64, pub concealed: AtomicU64, pub late: AtomicU64, pub depth_ms: AtomicU32, pub jitter_ms: AtomicU32, pub clicks_cut: AtomicU64, pub bitrate_kbps: AtomicU32, pub net_loss: AtomicU32, pub mic_level: AtomicU32, pub peer_level: AtomicU32, pub share_sent: AtomicU64, pub share_received: AtomicU64, pub next_seq: AtomicU32, pub next_share_seq: AtomicU32,
}

Fields§

§sent: AtomicU64§send_dropped: AtomicU64§received: AtomicU64§lost: AtomicU64

Frames skipped over: a hole wider than FEC covers, or a jump past a backlog.

§shed: AtomicU64

Frames the buffer discarded on purpose to take latency back.

§rebuilt: AtomicU64

Frames rebuilt from the FEC data in their successor.

§concealed: AtomicU64§late: AtomicU64§depth_ms: AtomicU32§jitter_ms: AtomicU32§clicks_cut: AtomicU64

Cable clicks cut out of the microphone before encoding.

§bitrate_kbps: AtomicU32

What the encoder is sending at, in kbit/s.

§net_loss: AtomicU32

Packets the network dropped on the way out, percent of the last second (f32 bits).

§mic_level: AtomicU32

Loudness of what the microphone sends after processing, 0 to 1 (f32 bits).

§peer_level: AtomicU32

Loudness of what the peer sends, 0 to 1 (f32 bits).

§share_sent: AtomicU64

A shared screen’s sound: frames sent and received on its own track.

§share_received: AtomicU64§next_seq: AtomicU32

The next outgoing sequence number (u16). Lives here, not in the capture loop, so a restarted engine keeps counting: the peer drops everything numbered below what it last played, and a reset silences us until the count catches back up.

§next_share_seq: AtomicU32

Implementations§

Source§

impl MediaStats

Source

pub fn mic_level(&self) -> f32

Source

pub fn peer_level(&self) -> f32

Source

pub fn net_loss(&self) -> f32

Trait Implementations§

Source§

impl Default for MediaStats

Source§

fn default() -> Self

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

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, 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.