pub struct PacketReceiptTimesBuilder { /* private fields */ }
Expand description
A builder for a PacketReceiptTimes
Implementations§
Source§impl PacketReceiptTimesBuilder
impl PacketReceiptTimesBuilder
Sourcepub fn ssrc(self, ssrc: u32) -> Self
pub fn ssrc(self, ssrc: u32) -> Self
Set the SSRC the PacketReceiptTimesBuilder
refers to.
Sourcepub fn thinning(self, thinning: u8) -> Self
pub fn thinning(self, thinning: u8) -> Self
Set the thinning value for the PacketReceiptTimes
.
Thinning signals that ever this block reports on every 2^thinning sequence number.
Sourcepub fn add_time(self, time: u32) -> Self
pub fn add_time(self, time: u32) -> Self
Add a receipt time to this PacketReceiptTimes
Trait Implementations§
Source§impl Debug for PacketReceiptTimesBuilder
impl Debug for PacketReceiptTimesBuilder
Source§impl Default for PacketReceiptTimesBuilder
impl Default for PacketReceiptTimesBuilder
Source§fn default() -> PacketReceiptTimesBuilder
fn default() -> PacketReceiptTimesBuilder
Returns the “default value” for a type. Read more
Source§impl RtcpPacketWriter for PacketReceiptTimesBuilder
impl RtcpPacketWriter for PacketReceiptTimesBuilder
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 PacketReceiptTimesBuilder
impl XrBlockBuilder<'_> for PacketReceiptTimesBuilder
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 PacketReceiptTimesBuilder
impl RefUnwindSafe for PacketReceiptTimesBuilder
impl Send for PacketReceiptTimesBuilder
impl Sync for PacketReceiptTimesBuilder
impl Unpin for PacketReceiptTimesBuilder
impl UnwindSafe for PacketReceiptTimesBuilder
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