pub struct XrReportBuilder { /* private fields */ }Expand description
Builder for XrReportInterceptor.
use rtci_interceptor::{Registry, Slot, XrReportBuilder};
let chain = Registry::new()
.with(Slot::ExtendedReports, XrReportBuilder::new().build())
.build();Implementations§
Source§impl XrReportBuilder
impl XrReportBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
A builder with the defaults: one report a second, blocks as negotiated, Gmin 16.
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
How often the blocks are written.
Sourcepub fn with_formats<S: Into<String>>(
self,
formats: impl IntoIterator<Item = S>,
) -> Self
pub fn with_formats<S: Into<String>>( self, formats: impl IntoIterator<Item = S>, ) -> Self
Send these xr-formats for every remote stream, whatever was negotiated (RFC 3611
section 5.1 allows blocks agreed on outside the signalling).
Sourcepub fn with_gmin(self, gmin: u8) -> Self
pub fn with_gmin(self, gmin: u8) -> Self
The Gmin of the burst model (RFC 3611 section 4.7.2). 0 is taken as the default 16 (section 4.7.6: “Gmin MUST NOT be zero”).
Sourcepub fn with_jitter_buffer(self, jitter_buffer: JitterBufferMetrics) -> Self
pub fn with_jitter_buffer(self, jitter_buffer: JitterBufferMetrics) -> Self
The application’s jitter buffer, reported in the VoIP Metrics block.
Sourcepub fn with_sender_ssrc(self, ssrc: u32) -> Self
pub fn with_sender_ssrc(self, ssrc: u32) -> Self
The SSRC the reports are sent from. Left unset: the first local stream’s, or a random one while there is none.
Sourcepub fn build(self) -> XrReportInterceptor
pub fn build(self) -> XrReportInterceptor
Build the interceptor.
Trait Implementations§
Source§impl Clone for XrReportBuilder
impl Clone for XrReportBuilder
Source§impl Debug for XrReportBuilder
impl Debug for XrReportBuilder
Auto Trait Implementations§
impl Forget for XrReportBuilder
impl Freeze for XrReportBuilder
impl Move for XrReportBuilder
impl RefUnwindSafe for XrReportBuilder
impl Send for XrReportBuilder
impl Sync for XrReportBuilder
impl Unpin for XrReportBuilder
impl UnsafeUnpin for XrReportBuilder
impl UnwindSafe for XrReportBuilder
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