Struct RtpPacket

Source
pub struct RtpPacket<'a> {
Show 13 fields 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],
}
Expand description

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§

Source§

impl<'a> Debug for RtpPacket<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for RtpPacket<'a>

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.