Skip to main content

TmmbrControl

Enum TmmbrControl 

Source
#[non_exhaustive]
pub enum TmmbrControl { Limit { media_ssrc: u32, bitrate: u64, }, Clear { media_ssrc: u32, }, NegotiatedMaximum(Option<u64>), }
Expand description

What an application tells the TMMBR requester (the congestion control interceptor), written into the chain with into_packet.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Limit

Ask the remote sender of media_ssrc to stay under bitrate bits per second, total media bit rate at the IP layer (RFC 5104 section 2.2: the RTP packets with their IP, UDP and RTP headers). Only for a remote stream that negotiated ccm tmmbr.

Fields

§media_ssrc: u32

The remote media sender’s SSRC.

§bitrate: u64

The maximum total media bit rate.

§

Clear

Lift the limit set on media_ssrc.

Fields

§media_ssrc: u32

The remote media sender’s SSRC.

§

NegotiatedMaximum(Option<u64>)

The maximum bit rate negotiated in signalling for what this endpoint receives (b=TIAS, or b=AS times 1000), which no TMMBR value exceeds (RFC 5104 section 4.2.1.2). None: none was negotiated.

Implementations§

Source§

impl TmmbrControl

Source

pub fn into_packet(self, now: Instant) -> TaggedPacket

The packet that carries this to the interceptor when written into the chain at now.

Trait Implementations§

Source§

impl Clone for TmmbrControl

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 TmmbrControl

Source§

impl Debug for TmmbrControl

Source§

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

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

impl Eq for TmmbrControl

Source§

impl PartialEq for TmmbrControl

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 TmmbrControl

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.