Skip to main content

PacerBacklog

Enum PacerBacklog 

Source
#[non_exhaustive]
pub enum PacerBacklog { Flush, Keep, }
Expand description

What the pacer does with what it holds when the path’s capacity collapses: the target has fallen to half or less of what it was when the queued media was written or within the queue time bound, and the queue would now take half the queue time bound or more to leave (see “A capacity collapse” on PacerInterceptor). It applies with QueueOverflow::Drop; QueueOverflow::Drain never discards.

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

Flush

The queue is given up: the media and retransmissions waiting are discarded (PacerDiscard, RetransmissionsLeft), the NACK responder is told to forget what was sent before (PacerFlush) and the application is asked for a key frame of every video stream. The receiver’s next picture is a current one, a key frame sized for the new rate, in place of seconds of frames sized for the old one delivered in order. RFC 8834 section 6.1: “It is not appropriate to blindly retransmit RTP packets in response to a NACK. The importance of lost packets and the likelihood of them arriving in time to be useful need to be considered”; RFC 4588 section 7: the sender “MAY selectively retransmit only the packets that it deems important”.

§

Keep

The source is paused and everything queued is delivered in order, with every retransmission asked for (“Pausing the source” on PacerInterceptor): for a receiver that plays strictly in order and cannot resume at a key frame. After a sharp drop the picture such a receiver shows is seconds old.

“Keep and repair everything” is one choice for a whole chain: the default interceptor set (DefaultInterceptorOptions::pacer_backlog) also switches off the NACK responder’s own rules that give repairs up (NackResponderBuilder::with_max_repair_age, with_repair_backlog_bound). A chain built by hand sets both to None on its responder.

Trait Implementations§

Source§

impl Clone for Backlog

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 Backlog

Source§

impl Debug for Backlog

Source§

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

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

impl Default for Backlog

Source§

fn default() -> Self

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

impl Eq for Backlog

Source§

impl PartialEq for Backlog

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 Backlog

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.