pub struct Pid(/* private fields */);Expand description
A 13-bit MPEG-TS Packet Identifier.
Thin newtype over the wire u16. Values are masked to 13 bits on
construction (0x0000..=0x1FFF), matching the transport header field
width (ISO/IEC 13818-1 §2.4.3.2).
Implementations§
Trait Implementations§
impl Copy for Pid
Source§impl<'de> Deserialize<'de> for Pid
impl<'de> Deserialize<'de> for Pid
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Pid
Source§impl Ord for Pid
impl Ord for Pid
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 Pid
impl PartialOrd for Pid
impl StructuralPartialEq for Pid
Auto Trait Implementations§
impl Freeze for Pid
impl RefUnwindSafe for Pid
impl Send for Pid
impl Sync for Pid
impl Unpin for Pid
impl UnsafeUnpin for Pid
impl UnwindSafe for Pid
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