Skip to main content

Rfc8888Builder

Struct Rfc8888Builder 

Source
pub struct Rfc8888Builder<P> { /* private fields */ }
Expand description

Builder for Rfc8888Interceptor.

§Example

use rtc_interceptor::{Registry, Rfc8888Builder};
use std::time::Duration;

let chain = Registry::new()
    .with(Rfc8888Builder::new().with_interval(Duration::from_millis(50)).build())
    .build();

Implementations§

Source§

impl<P> Rfc8888Builder<P>

Source

pub fn new() -> Self

Create a builder with the default interval and report size.

Source

pub fn with_interval(self, interval: Duration) -> Self

How often feedback is sent.

Congestion control wants this often — the estimate is only as fresh as the feedback driving it — traded against the RTCP bandwidth it costs.

Source

pub fn with_max_report_size(self, max_report_size: usize) -> Self

Byte budget for one report.

A report larger than the path MTU is fragmented or dropped, and feedback that does not arrive is worth nothing, so a report describes fewer packets rather than growing.

Source

pub fn with_sender_ssrc(self, sender_ssrc: u32) -> Self

The SSRC these reports are sent from.

Source

pub fn build(self) -> impl FnOnce(P) -> Rfc8888Interceptor<P>

Build the interceptor factory function.

Trait Implementations§

Source§

impl<P> Default for Rfc8888Builder<P>

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<P> Freeze for Rfc8888Builder<P>

§

impl<P> RefUnwindSafe for Rfc8888Builder<P>
where P: RefUnwindSafe,

§

impl<P> Send for Rfc8888Builder<P>
where P: Send,

§

impl<P> Sync for Rfc8888Builder<P>
where P: Sync,

§

impl<P> Unpin for Rfc8888Builder<P>
where P: Unpin,

§

impl<P> UnsafeUnpin for Rfc8888Builder<P>

§

impl<P> UnwindSafe for Rfc8888Builder<P>
where P: UnwindSafe,

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 = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.