pub struct PackHeader<'a> {
pub scr: Scr,
pub program_mux_rate: u32,
pub stuffing_length: u8,
pub stuffing: &'a [u8],
pub reserved: u8,
}Expand description
A parsed pack header.
Fields§
§scr: ScrSystem Clock Reference (42-bit; 33-bit base + 9-bit extension, 27 MHz).
program_mux_rate: u32Rate at which the P-STD receives the stream during this pack, in units of 50 bytes/s. Must be non-zero.
stuffing_length: u8The pack_stuffing_length field value (≤ 7).
stuffing: &'a [u8]Stuffing bytes (0xFF), zero to seven bytes.
reserved: u8Reserved bits (5 bits, preserved for round-trip).
Implementations§
Source§impl PackHeader<'_>
impl PackHeader<'_>
Sourcepub fn header_len(&self) -> usize
pub fn header_len(&self) -> usize
Offset to the byte immediately after this pack header (i.e. where PES data starts).
Trait Implementations§
Source§impl<'a> Clone for PackHeader<'a>
impl<'a> Clone for PackHeader<'a>
Source§fn clone(&self) -> PackHeader<'a>
fn clone(&self) -> PackHeader<'a>
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 moreSource§impl<'a> Debug for PackHeader<'a>
impl<'a> Debug for PackHeader<'a>
impl<'a> Eq for PackHeader<'a>
Source§impl<'a> Parse<'a> for PackHeader<'a>
impl<'a> Parse<'a> for PackHeader<'a>
Source§impl<'a> PartialEq for PackHeader<'a>
impl<'a> PartialEq for PackHeader<'a>
Source§fn eq(&self, other: &PackHeader<'a>) -> bool
fn eq(&self, other: &PackHeader<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for PackHeader<'a>
impl<'a> Serialize for PackHeader<'a>
Source§impl Serialize for PackHeader<'_>
impl Serialize for PackHeader<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for PackHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for PackHeader<'a>
impl<'a> RefUnwindSafe for PackHeader<'a>
impl<'a> Send for PackHeader<'a>
impl<'a> Sync for PackHeader<'a>
impl<'a> Unpin for PackHeader<'a>
impl<'a> UnsafeUnpin for PackHeader<'a>
impl<'a> UnwindSafe for PackHeader<'a>
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