pub struct ReceiverReportBuilder { /* private fields */ }
Expand description
Receiver Report Builder
Implementations§
Source§impl ReceiverReportBuilder
impl ReceiverReportBuilder
Sourcepub fn padding(self, padding: u8) -> Self
pub fn padding(self, padding: u8) -> Self
Sets the number of padding bytes to use for this receiver report.
Sourcepub fn add_report_block(self, report_block: ReportBlockBuilder) -> Self
pub fn add_report_block(self, report_block: ReportBlockBuilder) -> Self
Adds the provided Report Block.
Trait Implementations§
Source§impl Debug for ReceiverReportBuilder
impl Debug for ReceiverReportBuilder
Source§impl<'a> From<ReceiverReportBuilder> for PacketBuilder<'a>
impl<'a> From<ReceiverReportBuilder> for PacketBuilder<'a>
Source§fn from(pb: ReceiverReportBuilder) -> Self
fn from(pb: ReceiverReportBuilder) -> Self
Converts to this type from the input type.
Source§impl RtcpPacketWriter for ReceiverReportBuilder
impl RtcpPacketWriter for ReceiverReportBuilder
Source§fn calculate_size(&self) -> Result<usize, RtcpWriteError>
fn calculate_size(&self) -> Result<usize, RtcpWriteError>
Calculates the size required to write this Receiver Report packet.
Returns an error if:
- Too many Report Blocks where added.
- A Report Block is erroneous.
- The padding is not a multiple of 4.
Source§fn write_into_unchecked(&self, buf: &mut [u8]) -> usize
fn write_into_unchecked(&self, buf: &mut [u8]) -> usize
Writes this Receiver Report into buf
without any validity checks.
Uses the length of the buffer for the length field.
Returns the number of bytes written.
§Panic
Panics if the buf is not large enough.
Source§fn get_padding(&self) -> Option<u8>
fn get_padding(&self) -> Option<u8>
Gets the padding that was configured for this RTCP packet.
Auto Trait Implementations§
impl Freeze for ReceiverReportBuilder
impl RefUnwindSafe for ReceiverReportBuilder
impl Send for ReceiverReportBuilder
impl Sync for ReceiverReportBuilder
impl Unpin for ReceiverReportBuilder
impl UnwindSafe for ReceiverReportBuilder
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