pub struct NackBuilder { /* private fields */ }
Expand description
A builder for Nack
Implementations§
Source§impl NackBuilder
impl NackBuilder
Sourcepub fn add_rtp_sequence(self, rtp_sequence: u16) -> Self
pub fn add_rtp_sequence(self, rtp_sequence: u16) -> Self
Add a RTP sequence number as negatively acknowledged
Trait Implementations§
Source§impl Debug for NackBuilder
impl Debug for NackBuilder
Source§impl Default for NackBuilder
impl Default for NackBuilder
Source§fn default() -> NackBuilder
fn default() -> NackBuilder
Returns the “default value” for a type. Read more
Source§impl FciBuilder<'_> for NackBuilder
impl FciBuilder<'_> for NackBuilder
Source§impl RtcpPacketWriter for NackBuilder
impl RtcpPacketWriter for NackBuilder
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.
Auto Trait Implementations§
impl Freeze for NackBuilder
impl RefUnwindSafe for NackBuilder
impl Send for NackBuilder
impl Sync for NackBuilder
impl Unpin for NackBuilder
impl UnwindSafe for NackBuilder
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