pub struct ReportBlock<'a> { /* private fields */ }
Expand description
A report block as found in a SenderReport
or a
ReceiverReport
for a received SSRC
Implementations§
Source§impl<'a> ReportBlock<'a>
impl<'a> ReportBlock<'a>
pub const EXPECTED_SIZE: usize = 24usize
Sourcepub fn parse(data: &'a [u8]) -> Result<Self, RtcpParseError>
pub fn parse(data: &'a [u8]) -> Result<Self, RtcpParseError>
Parse data into a ReportBlock
.
Sourcepub fn fraction_lost(&self) -> u8
pub fn fraction_lost(&self) -> u8
The fractional part (out of 256) of packets that have been lost
Sourcepub fn cumulative_lost(&self) -> u32
pub fn cumulative_lost(&self) -> u32
Total count of packets that have been lost. This is a 24-bit value.
Sourcepub fn extended_sequence_number(&self) -> u32
pub fn extended_sequence_number(&self) -> u32
Extended sequence number
Sourcepub fn interarrival_jitter(&self) -> u32
pub fn interarrival_jitter(&self) -> u32
The interarrival jitter of this receiver
Sourcepub fn last_sender_report_timestamp(&self) -> u32
pub fn last_sender_report_timestamp(&self) -> u32
The NTP 16.16 fixed point time that a sender report was last received
Sourcepub fn delay_since_last_sender_report_timestamp(&self) -> u32
pub fn delay_since_last_sender_report_timestamp(&self) -> u32
16.16 fixed point duration since the last sender report was received
Sourcepub fn builder(ssrc: u32) -> ReportBlockBuilder
pub fn builder(ssrc: u32) -> ReportBlockBuilder
Create a new ReportBlockBuilder
Trait Implementations§
Source§impl<'a> Debug for ReportBlock<'a>
impl<'a> Debug for ReportBlock<'a>
Source§impl<'a> PartialEq for ReportBlock<'a>
impl<'a> PartialEq for ReportBlock<'a>
impl<'a> Eq for ReportBlock<'a>
impl<'a> StructuralPartialEq for ReportBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReportBlock<'a>
impl<'a> RefUnwindSafe for ReportBlock<'a>
impl<'a> Send for ReportBlock<'a>
impl<'a> Sync for ReportBlock<'a>
impl<'a> Unpin for ReportBlock<'a>
impl<'a> UnwindSafe for ReportBlock<'a>
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