Struct retina::rtcp::ReceivedCompoundPacket
source · pub struct ReceivedCompoundPacket { /* private fields */ }
Expand description
A received RTCP compound packet.
The contents have been validated at least as specified in RFC 3550 appendix A.2, updated by RFC 5506:
- There is at least one RTCP packet within the compound packet.
- All packets are RTCP version 2.
- Non-final packets have no padding.
- The packets’ lengths add up to the compound packet’s length.
Implementations§
source§impl ReceivedCompoundPacket
impl ReceivedCompoundPacket
pub fn ctx(&self) -> &PacketContext
pub fn stream_id(&self) -> usize
sourcepub fn rtp_timestamp(&self) -> Option<Timestamp>
pub fn rtp_timestamp(&self) -> Option<Timestamp>
Returns an RTP timestamp iff this compound packet begins with a valid Sender Report.
Iff this returns Some
, other fields of the sender report can be accessed as follows:
let sender_report = compound.pkts().next().unwrap().as_sender_report().unwrap();
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ReceivedCompoundPacket
impl RefUnwindSafe for ReceivedCompoundPacket
impl Send for ReceivedCompoundPacket
impl Sync for ReceivedCompoundPacket
impl Unpin for ReceivedCompoundPacket
impl UnwindSafe for ReceivedCompoundPacket
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