Skip to main content

FlexFecReceiveBuilder

Struct FlexFecReceiveBuilder 

Source
pub struct FlexFecReceiveBuilder { /* private fields */ }
Expand description

Builder for FlexFecReceiveInterceptor.

§Example

use rtci_interceptor::{FlexFecReceiveBuilder, Registry, Slot};

let chain = Registry::new()
    .with(Slot::FecDecoder, FlexFecReceiveBuilder::new().build())
    .build();

Implementations§

Source§

impl FlexFecReceiveBuilder

Source

pub fn new() -> Self

A builder supporting repair windows up to FLEXFEC_MAX_REPAIR_WINDOW.

Source

pub fn with_max_repair_window(self, max_repair_window: Duration) -> Self

The longest repair window this receiver buffers for.

A stream whose negotiated repair-window is longer is not protected: the receiver “must support any valid FLEX FEC configuration within the repair window” it agreed to (RFC 8627 section 5.2.1), and it cannot for a window it does not buffer. (Refusing the payload type in the answer is the application’s part: see the media engine.)

Source

pub fn with_in_band_ssrc_mapping(self, payload_type: u8) -> Self

In-band SSRC mapping (RFC 8627 section 7.1.1): there is no a=ssrc-group:FEC-FR, a packet with payload_type on an SSRC that is not a bound media stream is a repair packet, and its CSRC list says which streams it protects. Every bound remote stream is then a source stream.

Source

pub fn build(self) -> FlexFecReceiveInterceptor

Build the interceptor.

Trait Implementations§

Source§

impl Default for FlexFecReceiveBuilder

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.