pub struct FlexFec03SendBuilder { /* private fields */ }Expand description
Builder for FlexFec03SendInterceptor.
§Example
use rtc_interceptor::{Slot, FlexFec03SendBuilder, Registry};
let chain = Registry::new()
.with(Slot::FecEncoder, FlexFec03SendBuilder::new().with_num_fec_packets(1).build())
.build();Implementations§
Source§impl FlexFec03SendBuilder
impl FlexFec03SendBuilder
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) -> FlexFec03SendInterceptor
pub fn build(self) -> FlexFec03SendInterceptor
Build the interceptor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlexFec03SendBuilder
impl RefUnwindSafe for FlexFec03SendBuilder
impl Send for FlexFec03SendBuilder
impl Sync for FlexFec03SendBuilder
impl Unpin for FlexFec03SendBuilder
impl UnsafeUnpin for FlexFec03SendBuilder
impl UnwindSafe for FlexFec03SendBuilder
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