pub struct DuplicateRleBuilder { /* private fields */ }
Expand description
Builder for a DuplicateRle
Implementations§
Source§impl DuplicateRleBuilder
impl DuplicateRleBuilder
Sourcepub fn ssrc(self, ssrc: u32) -> Self
pub fn ssrc(self, ssrc: u32) -> Self
Set the SSRC the DuplicateRle
refers to.
Sourcepub fn thinning(self, thinning: u8) -> Self
pub fn thinning(self, thinning: u8) -> Self
Set the thinning value for the DuplicateRle
.
Thinning signals that ever this block reports on every 2^thinning sequence number.
Sourcepub fn add_chunk(self, chunk: RleChunk) -> Self
pub fn add_chunk(self, chunk: RleChunk) -> Self
Add a chunk for this DuplicateRle
Trait Implementations§
Source§impl Debug for DuplicateRleBuilder
impl Debug for DuplicateRleBuilder
Source§impl Default for DuplicateRleBuilder
impl Default for DuplicateRleBuilder
Source§fn default() -> DuplicateRleBuilder
fn default() -> DuplicateRleBuilder
Returns the “default value” for a type. Read more
Source§impl RtcpPacketWriter for DuplicateRleBuilder
impl RtcpPacketWriter for DuplicateRleBuilder
Source§fn calculate_size(&self) -> Result<usize, RtcpWriteError>
fn calculate_size(&self) -> Result<usize, RtcpWriteError>
Calculates the size required to write this RTCP packet. Read more
Source§fn write_into_unchecked(&self, buf: &mut [u8]) -> usize
fn write_into_unchecked(&self, buf: &mut [u8]) -> usize
Writes this RTCP packet into
buf
without any validity checks. Read moreSource§fn get_padding(&self) -> Option<u8>
fn get_padding(&self) -> Option<u8>
Gets the padding that was configured for this RTCP packet.
Source§impl XrBlockBuilder<'_> for DuplicateRleBuilder
impl XrBlockBuilder<'_> for DuplicateRleBuilder
Source§fn type_specific_byte(&self) -> u8
fn type_specific_byte(&self) -> u8
The type specific byte to place in the XR block header
Auto Trait Implementations§
impl Freeze for DuplicateRleBuilder
impl RefUnwindSafe for DuplicateRleBuilder
impl Send for DuplicateRleBuilder
impl Sync for DuplicateRleBuilder
impl Unpin for DuplicateRleBuilder
impl UnwindSafe for DuplicateRleBuilder
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
Source§impl<T> RtcpPacketWriterExt for Twhere
T: RtcpPacketWriter,
impl<T> RtcpPacketWriterExt for Twhere
T: RtcpPacketWriter,
Source§fn write_into(&self, buf: &mut [u8]) -> Result<usize, RtcpWriteError>
fn write_into(&self, buf: &mut [u8]) -> Result<usize, RtcpWriteError>
Writes the Custom packet into
buf
. Read more