pub struct RtpFixedHeader {
payload_type: u8,
sequence_number: u16,
timestamp: u32,
ssrc: Ssrc,
marker: bool,
has_padding: bool,
has_extension: bool,
csrc_count: u8,
}Expand description
Parsed fields from an RTP fixed header in an RTP/RTCP muxed session.
Reference: https://www.rfc-editor.org/rfc/rfc3550.html#section-5.1
Fields§
§payload_type: u8§sequence_number: u16§timestamp: u32§ssrc: Ssrc§marker: bool§has_padding: bool§has_extension: bool§csrc_count: u8Implementations§
Source§impl RtpFixedHeader
impl RtpFixedHeader
pub const fn payload_type(self) -> u8
pub const fn sequence_number(self) -> u16
pub const fn timestamp(self) -> u32
pub const fn ssrc(self) -> Ssrc
pub const fn marker(self) -> bool
pub const fn has_padding(self) -> bool
const fn has_extension(self) -> bool
fn extension_offset(self) -> usize
Trait Implementations§
Source§impl Clone for RtpFixedHeader
impl Clone for RtpFixedHeader
Source§fn clone(&self) -> RtpFixedHeader
fn clone(&self) -> RtpFixedHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RtpFixedHeader
impl Debug for RtpFixedHeader
Source§impl PartialEq for RtpFixedHeader
impl PartialEq for RtpFixedHeader
impl Copy for RtpFixedHeader
impl Eq for RtpFixedHeader
impl StructuralPartialEq for RtpFixedHeader
Auto Trait Implementations§
impl Freeze for RtpFixedHeader
impl RefUnwindSafe for RtpFixedHeader
impl Send for RtpFixedHeader
impl Sync for RtpFixedHeader
impl Unpin for RtpFixedHeader
impl UnsafeUnpin for RtpFixedHeader
impl UnwindSafe for RtpFixedHeader
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