pub struct StreamId(pub u8);Expand description
8-bit stream_id of a PES packet.
Tuple Fields§
§0: u8Implementations§
Source§impl StreamId
impl StreamId
Sourcepub const PROGRAM_STREAM_MAP: StreamId
pub const PROGRAM_STREAM_MAP: StreamId
program_stream_map (0xBC).
Sourcepub const PADDING_STREAM: StreamId
pub const PADDING_STREAM: StreamId
padding_stream (0xBE).
Sourcepub const PRIVATE_STREAM_2: StreamId
pub const PRIVATE_STREAM_2: StreamId
private_stream_2 (0xBF).
Sourcepub const fn has_optional_header(self) -> bool
pub const fn has_optional_header(self) -> bool
True if this stream_id carries the optional PES header (flags +
PES_header_data_length + PTS/DTS). False for the special streams whose
PES_packet_data_bytes follow PES_packet_length directly.
Trait Implementations§
impl Copy for StreamId
impl Eq for StreamId
Source§impl Ord for StreamId
impl Ord for StreamId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for StreamId
impl PartialOrd for StreamId
Source§impl Serialize for StreamId
impl Serialize for StreamId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StreamId
Auto Trait Implementations§
impl Freeze for StreamId
impl RefUnwindSafe for StreamId
impl Send for StreamId
impl Sync for StreamId
impl Unpin for StreamId
impl UnsafeUnpin for StreamId
impl UnwindSafe for StreamId
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