pub struct FlexFec03SendBuilder<P> { /* private fields */ }Expand description
Builder for FlexFec03SendInterceptor.
§Example
use rtc_interceptor::{FlexFec03SendBuilder, Registry};
let chain = Registry::new()
.with(FlexFec03SendBuilder::new().with_num_fec_packets(1).build())
.build();Implementations§
Source§impl<P> FlexFec03SendBuilder<P>
impl<P> FlexFec03SendBuilder<P>
Sourcepub fn with_num_media_packets(self, num_media_packets: u32) -> Self
pub fn with_num_media_packets(self, num_media_packets: u32) -> Self
How many media packets one repair block protects.
Larger blocks cost less bandwidth per protected packet and recover later, since the block is only sent once it is full.
Sourcepub fn with_num_fec_packets(self, num_fec_packets: u32) -> Self
pub fn with_num_fec_packets(self, num_fec_packets: u32) -> Self
How many repair packets each block produces.
This is what the block can survive: n repair packets recover up to n losses, spread across the block by the interleaving.
Sourcepub fn build(self) -> impl FnOnce(P) -> FlexFec03SendInterceptor<P>
pub fn build(self) -> impl FnOnce(P) -> FlexFec03SendInterceptor<P>
Build the interceptor factory function.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for FlexFec03SendBuilder<P>
impl<P> RefUnwindSafe for FlexFec03SendBuilder<P>where
P: RefUnwindSafe,
impl<P> Send for FlexFec03SendBuilder<P>where
P: Send,
impl<P> Sync for FlexFec03SendBuilder<P>where
P: Sync,
impl<P> Unpin for FlexFec03SendBuilder<P>where
P: Unpin,
impl<P> UnsafeUnpin for FlexFec03SendBuilder<P>
impl<P> UnwindSafe for FlexFec03SendBuilder<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more