pub struct SenderReport<'a> { /* private fields */ }
Expand description
A Parsed Sender Report packet.
Implementations§
Source§impl<'a> SenderReport<'a>
impl<'a> SenderReport<'a>
Sourcepub fn padding(&self) -> Option<u8>
pub fn padding(&self) -> Option<u8>
The (optional) padding used by this SenderReport
packet
Sourcepub fn ntp_timestamp(&self) -> u64
pub fn ntp_timestamp(&self) -> u64
The 32.32 fixed point NTP timestamp sampled at the same time as the RTP timestamp
Sourcepub fn rtp_timestamp(&self) -> u32
pub fn rtp_timestamp(&self) -> u32
The RTP timestamp for this SSRC sampled at the same time as the NTP timestamp
Sourcepub fn packet_count(&self) -> u32
pub fn packet_count(&self) -> u32
The number of packets that this sender has sent
Sourcepub fn octet_count(&self) -> u32
pub fn octet_count(&self) -> u32
The number of octets (bytes) that this sender has sent
Sourcepub fn report_blocks(&self) -> impl Iterator<Item = ReportBlock<'a>> + '_
pub fn report_blocks(&self) -> impl Iterator<Item = ReportBlock<'a>> + '_
Iterator of report blocks in this SenderReport
Sourcepub fn builder(ssrc: u32) -> SenderReportBuilder
pub fn builder(ssrc: u32) -> SenderReportBuilder
Create a new SenderReportBuilder
Trait Implementations§
Source§impl<'a> Clone for SenderReport<'a>
impl<'a> Clone for SenderReport<'a>
Source§fn clone(&self) -> SenderReport<'a>
fn clone(&self) -> SenderReport<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for SenderReport<'a>
impl<'a> Debug for SenderReport<'a>
Source§impl<'a> From<SenderReport<'a>> for Packet<'a>
impl<'a> From<SenderReport<'a>> for Packet<'a>
Source§fn from(p: SenderReport<'a>) -> Self
fn from(p: SenderReport<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for SenderReport<'a>
impl<'a> PartialEq for SenderReport<'a>
Source§impl<'a> RtcpPacket for SenderReport<'a>
impl<'a> RtcpPacket for SenderReport<'a>
Source§impl<'a> RtcpPacketParser<'a> for SenderReport<'a>
impl<'a> RtcpPacketParser<'a> for SenderReport<'a>
Source§impl<'a> TryFrom<&'a Packet<'a>> for SenderReport<'a>
impl<'a> TryFrom<&'a Packet<'a>> for SenderReport<'a>
Source§impl<'a> TryFrom<&'a Unknown<'a>> for SenderReport<'a>
impl<'a> TryFrom<&'a Unknown<'a>> for SenderReport<'a>
Source§impl<'a> TryFrom<Packet<'a>> for SenderReport<'a>
impl<'a> TryFrom<Packet<'a>> for SenderReport<'a>
Source§impl<'a> TryFrom<Unknown<'a>> for SenderReport<'a>
impl<'a> TryFrom<Unknown<'a>> for SenderReport<'a>
impl<'a> Eq for SenderReport<'a>
impl<'a> StructuralPartialEq for SenderReport<'a>
Auto Trait Implementations§
impl<'a> Freeze for SenderReport<'a>
impl<'a> RefUnwindSafe for SenderReport<'a>
impl<'a> Send for SenderReport<'a>
impl<'a> Sync for SenderReport<'a>
impl<'a> Unpin for SenderReport<'a>
impl<'a> UnwindSafe for SenderReport<'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