pub struct GccInterceptorBuilder<P> { /* private fields */ }Expand description
Builder for GccInterceptor.
Create with GccInterceptorBuilder::new, which returns (builder, handle).
Implementations§
Source§impl<P> GccInterceptorBuilder<P>
impl<P> GccInterceptorBuilder<P>
Sourcepub fn new() -> (Self, GccHandle)
pub fn new() -> (Self, GccHandle)
Create a new builder and the associated GccHandle.
The handle can be shared with the application so it can read the latest bitrate estimate each polling tick.
Sourcepub fn with_min_bitrate(self, bps: u32) -> Self
pub fn with_min_bitrate(self, bps: u32) -> Self
Minimum send rate floor (default 30 kbps).
Sourcepub fn with_max_bitrate(self, bps: u32) -> Self
pub fn with_max_bitrate(self, bps: u32) -> Self
Maximum send rate ceiling (default 2.5 Mbps).
Sourcepub fn with_received_rate_bound(
self,
received_rate_bound: ReceivedRateBound,
) -> Self
pub fn with_received_rate_bound( self, received_rate_bound: ReceivedRateBound, ) -> Self
What the bound of the estimate by the received rate does to an estimate above it
(Gcc::with_received_rate_bound): by default
it only stops the increase, so the estimate is kept while the application sends less
than it.
Sourcepub fn build(self) -> impl FnOnce(P) -> GccInterceptor<P>
pub fn build(self) -> impl FnOnce(P) -> GccInterceptor<P>
Build the interceptor factory closure.
Auto Trait Implementations§
impl<P> Forget for GccInterceptorBuilder<P>
impl<P> Freeze for GccInterceptorBuilder<P>where
PhantomData<P>: Freeze,
impl<P> Move for GccInterceptorBuilder<P>
impl<P> RefUnwindSafe for GccInterceptorBuilder<P>where
PhantomData<P>: RefUnwindSafe,
impl<P> Send for GccInterceptorBuilder<P>where
PhantomData<P>: Send,
impl<P> Sync for GccInterceptorBuilder<P>where
PhantomData<P>: Sync,
impl<P> Unpin for GccInterceptorBuilder<P>where
PhantomData<P>: Unpin,
impl<P> UnsafeUnpin for GccInterceptorBuilder<P>where
PhantomData<P>: UnsafeUnpin,
impl<P> UnwindSafe for GccInterceptorBuilder<P>where
PhantomData<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