pub struct Rfc8888Builder { /* private fields */ }Expand description
Builder for Rfc8888Interceptor.
§Example
use rtc_interceptor::{Slot, Registry, Rfc8888Builder};
use std::time::Duration;
let chain = Registry::new()
.with(Slot::Rfc8888, Rfc8888Builder::new().with_interval(Duration::from_millis(50)).build())
.build();Implementations§
Source§impl Rfc8888Builder
impl Rfc8888Builder
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) -> Rfc8888Interceptor
pub fn build(self) -> Rfc8888Interceptor
Build the interceptor.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rfc8888Builder
impl RefUnwindSafe for Rfc8888Builder
impl Send for Rfc8888Builder
impl Sync for Rfc8888Builder
impl Unpin for Rfc8888Builder
impl UnsafeUnpin for Rfc8888Builder
impl UnwindSafe for Rfc8888Builder
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