pub struct CongestionControlBuilder<E: BandwidthEstimator> { /* private fields */ }Expand description
Builder for CongestionControlInterceptor.
§Example
use rtc_interceptor::{Slot, CongestionControlBuilder, ConstantBitrate, Registry};
let chain = Registry::new()
.with(Slot::CongestionControl, CongestionControlBuilder::new(ConstantBitrate::new(1_000_000.0)).build())
.build();Implementations§
Source§impl<E: BandwidthEstimator> CongestionControlBuilder<E>
impl<E: BandwidthEstimator> CongestionControlBuilder<E>
Sourcepub fn with_prune_horizon(self, prune_horizon: Duration) -> Self
pub fn with_prune_horizon(self, prune_horizon: Duration) -> Self
How long an unacknowledged packet is kept before it is written off.
Sourcepub fn build(self) -> CongestionControlInterceptor<E>
pub fn build(self) -> CongestionControlInterceptor<E>
Build the interceptor.
Auto Trait Implementations§
impl<E> Freeze for CongestionControlBuilder<E>where
E: Freeze,
impl<E> RefUnwindSafe for CongestionControlBuilder<E>where
E: RefUnwindSafe,
impl<E> Send for CongestionControlBuilder<E>
impl<E> Sync for CongestionControlBuilder<E>
impl<E> Unpin for CongestionControlBuilder<E>where
E: Unpin,
impl<E> UnsafeUnpin for CongestionControlBuilder<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for CongestionControlBuilder<E>where
E: 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