pub struct Header {
pub padding: bool,
pub count: u8,
pub packet_type: PacketType,
pub length: u16,
}
Expand description
A Header is the common header shared by all RTCP packets
Fields§
§padding: bool
If the padding bit is set, this individual RTCP packet contains some additional padding octets at the end which are not part of the control information but are included in the length field.
count: u8
The number of reception reports, sources contained or FMT in this packet (depending on the Type)
packet_type: PacketType
The RTCP packet type for this packet
length: u16
The length of this RTCP packet in 32-bit words minus one, including the header and any padding.
Trait Implementations§
source§impl MarshalSize for Header
impl MarshalSize for Header
Marshal encodes the Header in binary
fn marshal_size(&self) -> usize
source§impl PartialEq for Header
impl PartialEq for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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