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>
impl<P> Rfc8888Builder<P>
Sourcepub fn with_interval(self, interval: Duration) -> Self
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.
Sourcepub fn with_max_report_size(self, max_report_size: usize) -> Self
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.
Sourcepub fn with_sender_ssrc(self, sender_ssrc: u32) -> Self
pub fn with_sender_ssrc(self, sender_ssrc: u32) -> Self
The SSRC these reports are sent from.
Sourcepub fn build(self) -> impl FnOnce(P) -> Rfc8888Interceptor<P>
pub fn build(self) -> impl FnOnce(P) -> Rfc8888Interceptor<P>
Build the interceptor factory function.
Trait Implementations§
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> 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