pub struct TwccBuilder { /* private fields */ }Expand description
Builder for a TWCC (Transport-Wide Congestion Control) FCI packet
Implementations§
Source§impl TwccBuilder
impl TwccBuilder
Sourcepub fn new(
base_seq: u16,
reference_time: u32,
feedback_packet_count: u8,
status_list: &[TwccPacketStatus],
max_size: Option<usize>,
) -> TwccBuilder
pub fn new( base_seq: u16, reference_time: u32, feedback_packet_count: u8, status_list: &[TwccPacketStatus], max_size: Option<usize>, ) -> TwccBuilder
Create a new TwccBuilder with the given packet status list.
max_size limits the number of bytes the FCI portion of the RTCP packet can use.
If set, TwccBuilder::packet_status_count must be used to check how many status entries have been consumed.
Any remaining status entries must be encoded in a separate feedback packet.
Sourcepub fn packet_status_count(&self) -> usize
pub fn packet_status_count(&self) -> usize
Number of packet status entries contained in this builder.
Trait Implementations§
Source§impl Debug for TwccBuilder
impl Debug for TwccBuilder
Source§impl FciBuilder<'_> for TwccBuilder
impl FciBuilder<'_> for TwccBuilder
Source§fn supports_feedback_type(&self) -> FciFeedbackPacketType
fn supports_feedback_type(&self) -> FciFeedbackPacketType
The type of feedback packet this FCI data supports being placed in
Source§impl RtcpPacketWriter for TwccBuilder
impl RtcpPacketWriter for TwccBuilder
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 TwccBuilder
impl RefUnwindSafe for TwccBuilder
impl Send for TwccBuilder
impl Sync for TwccBuilder
impl Unpin for TwccBuilder
impl UnwindSafe for TwccBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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