pub struct CompoundPacket {
pub packets: Vec<RtcpPacket>,
}Expand description
A compound RTCP packet (RFC 3550 §6.1): a sequence of RTCP packets sent in a single lower-layer datagram. The first packet must be a report (SR or RR); this is validated on both parse and serialize.
Fields§
§packets: Vec<RtcpPacket>The constituent packets, in wire order (first is SR/RR).
Implementations§
Source§impl CompoundPacket
impl CompoundPacket
Sourcepub fn new(packets: Vec<RtcpPacket>) -> Result<Self>
pub fn new(packets: Vec<RtcpPacket>) -> Result<Self>
Build a compound packet, validating the §6.1 first-packet rule.
Trait Implementations§
Source§impl Clone for CompoundPacket
impl Clone for CompoundPacket
Source§fn clone(&self) -> CompoundPacket
fn clone(&self) -> CompoundPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompoundPacket
impl Debug for CompoundPacket
impl Eq for CompoundPacket
Source§impl<'a> Parse<'a> for CompoundPacket
impl<'a> Parse<'a> for CompoundPacket
Source§impl PartialEq for CompoundPacket
impl PartialEq for CompoundPacket
Source§impl Serialize for CompoundPacket
Available on crate feature serde only.
impl Serialize for CompoundPacket
Available on crate feature
serde only.Source§impl Serialize for CompoundPacket
impl Serialize for CompoundPacket
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl StructuralPartialEq for CompoundPacket
Auto Trait Implementations§
impl Freeze for CompoundPacket
impl RefUnwindSafe for CompoundPacket
impl Send for CompoundPacket
impl Sync for CompoundPacket
impl Unpin for CompoundPacket
impl UnsafeUnpin for CompoundPacket
impl UnwindSafe for CompoundPacket
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