pub struct CommonHeader {
pub padding: bool,
pub count: u8,
pub packet_type: u8,
pub length: u16,
}Expand description
The 4-byte RTCP common header shared by every packet type (RFC 3550 §6.1).
Fields§
§padding: boolThe P (padding) bit.
count: u8The RC/SC 5-bit count (report count for SR/RR, source count for
SDES/BYE, subtype for APP).
packet_type: u8The PT (packet type) byte.
length: u16The length field: packet size in 32-bit words minus one.
Trait Implementations§
Source§impl Clone for CommonHeader
impl Clone for CommonHeader
Source§fn clone(&self) -> CommonHeader
fn clone(&self) -> CommonHeader
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 moreimpl Copy for CommonHeader
Source§impl Debug for CommonHeader
impl Debug for CommonHeader
impl Eq for CommonHeader
Source§impl PartialEq for CommonHeader
impl PartialEq for CommonHeader
Source§impl Serialize for CommonHeader
impl Serialize for CommonHeader
impl StructuralPartialEq for CommonHeader
Auto Trait Implementations§
impl Freeze for CommonHeader
impl RefUnwindSafe for CommonHeader
impl Send for CommonHeader
impl Sync for CommonHeader
impl Unpin for CommonHeader
impl UnsafeUnpin for CommonHeader
impl UnwindSafe for CommonHeader
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