Skip to main content

FecSessionPacket

Struct FecSessionPacket 

Source
pub struct FecSessionPacket {
    pub media_ssrc: u32,
    pub payload_type: u8,
    pub one_level_only: bool,
}
Expand description

Marks an RTP packet as a FEC packet that arrived in a FEC session of its own (RFC 5109 section 14.1), for a binder that learns which stream a FEC session protects only as its packets arrive. Carried as Attribute::Custom.

Whoever drives the chain attaches it to each RTP packet read on a FEC session’s transport, beside mapping the packet’s SSRC (FecSessionSsrcMap). The receive interceptor gives such a packet to the decoder of media_ssrc, if it keeps one (a bound stream that passed the filter, UlpfecReceiveBuilder::sessions or the RED carriage), and passes it no further. It does the same for a stream bound with StreamInfo::fec_session, which needs no mark.

Fields§

§media_ssrc: u32

The SSRC of the media stream the FEC session’s stream protects: the SSRC the packet had on the FEC session’s transport (RFC 5109 section 7.2).

§payload_type: u8

The payload type of ulpfec in the FEC session’s m= section. A packet of the session with another payload type is not FEC and is discarded (RFC 3550 section 5.1: a receiver “MUST ignore packets with payload types that it does not understand”).

§one_level_only: bool

This endpoint signalled onelevelonly=1 for the session (RFC 5109 section 13): FEC with more than one level is refused.

Trait Implementations§

Source§

impl Clone for FecSessionPacket

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 FecSessionPacket

Source§

impl Debug for FecSessionPacket

Source§

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

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

impl Eq for FecSessionPacket

Source§

impl PartialEq for FecSessionPacket

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 FecSessionPacket

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.