Skip to main content

UlpfecReceiveStats

Struct UlpfecReceiveStats 

Source
#[non_exhaustive]
pub struct UlpfecReceiveStats { pub media_ssrc: u32, pub fec_packets_in_red: u64, pub fec_bytes_in_red: u64, pub decoder: UlpfecDecoderStats, }
Expand description

What the ULPFEC decoder of one protected stream has received and done so far.

The receive interceptor passes it application-ward as Attribute::Custom on an empty RTCP packet (a carrier, which the chain’s terminus lets through) whenever it changed, so whoever drives the chain can report it: rtci’s peer connection puts it in the stream’s webrtc-stats fecPacketsReceived, fecBytesReceived and fecPacketsDiscarded. The counts are totals since the stream was bound, so a carrier that is lost loses nothing.

FEC on a repair SSRC or in a FEC session of its own arrives as packets of its own, which the one who reads them off the wire can count; FEC blocks in RED packets of the media stream (RFC 5109 section 14.2) are known only here, and are counted in fec_packets_in_red.

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.
§media_ssrc: u32

The protected media stream.

§fec_packets_in_red: u64

FEC blocks that arrived in RED packets of the stream, whatever became of them.

§fec_bytes_in_red: u64

Their octets: the FEC header, the level headers and the protected data (the block, not the RED packet around it).

§decoder: UlpfecDecoderStats

The decoder’s counters: what it took, rebuilt and discarded, from every carriage.

Trait Implementations§

Source§

impl Clone for UlpfecReceiveStats

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 UlpfecReceiveStats

Source§

impl Debug for UlpfecReceiveStats

Source§

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

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

impl Eq for UlpfecReceiveStats

Source§

impl PartialEq for UlpfecReceiveStats

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 UlpfecReceiveStats

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