[][src]Struct rtp_parser::RtpPacket

pub struct RtpPacket<'a> {
    pub version: u8,
    pub padding: u8,
    pub extension: u8,
    pub csrc_count: u8,
    pub marker: u8,
    pub payload_type: u8,
    pub sequence_number: u16,
    pub timestamp: u32,
    pub ssrc: u32,
    pub csrc: Vec<u32>,
    pub header_extension: Option<RtpPacketHeaderExtension<'a>>,
    pub payload: &'a [u8],
    pub padding_bytes: &'a [u8],
}

An RTP packet, https://tools.ietf.org/html/rfc3550#section-5.1

Fields

version: u8

version -- 2 bits

padding: u8

padding flag -- 1 bit

extension: u8

extension flag -- 1 bit

csrc_count: u8

csrc count -- 4 bits

marker: u8

marker flag -- 1 bit

payload_type: u8

payload type -- 7 bits

sequence_number: u16

sequence number -- 2 bytes

timestamp: u32

timestamp -- 4 bytes

ssrc: u32

synchronization source identifier

csrc: Vec<u32>

contributing source identifiers (0 to 15)

header_extension: Option<RtpPacketHeaderExtension<'a>>

optional header extension

payload: &'a [u8]

payload

padding_bytes: &'a [u8]

padding

Trait Implementations

impl<'a> Debug for RtpPacket<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for RtpPacket<'a>

impl<'a> Send for RtpPacket<'a>

impl<'a> Sync for RtpPacket<'a>

impl<'a> Unpin for RtpPacket<'a>

impl<'a> UnwindSafe for RtpPacket<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.