pub struct RtpHeader {
pub marker: bool,
pub payload_type: u8,
pub sequence_number: u16,
pub timestamp: u32,
pub ssrc: u32,
pub csrc_count: u8,
pub has_extension: bool,
pub header_len: usize,
pub payload_len: usize,
}Expand description
Parsed RTP header metadata.
Fields§
§marker: boolRTP marker bit, usually set at an access-unit boundary.
payload_type: u8RTP payload type.
sequence_number: u16RTP sequence number.
timestamp: u32RTP timestamp.
ssrc: u32RTP synchronization source.
csrc_count: u8Number of CSRC entries.
has_extension: boolTrue if the packet has an RTP header extension.
header_len: usizeHeader length including CSRC and extension bytes.
payload_len: usizePayload length after header and padding removal.
Implementations§
Trait Implementations§
impl Copy for RtpHeader
impl Eq for RtpHeader
impl StructuralPartialEq for RtpHeader
Auto Trait Implementations§
impl Freeze for RtpHeader
impl RefUnwindSafe for RtpHeader
impl Send for RtpHeader
impl Sync for RtpHeader
impl Unpin for RtpHeader
impl UnsafeUnpin for RtpHeader
impl UnwindSafe for RtpHeader
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