Enum mpeg2ts_reader::packet::AdaptationControl[][src]

pub enum AdaptationControl {
    Reserved,
    PayloadOnly,
    AdaptationFieldOnly,
    AdaptationFieldAndPayload,
}

the different values indicating whether a Packet’s adaptation_field() and payload() methods will return Some or None.

Variants

Reserved

This value is used if the transport stream packet adaptation_control field uses the value 0b00, which is not defined by the spec.

PayloadOnly

indicates that this packet contains a payload, but not an adaptation field

AdaptationFieldOnly

indicates that this packet contains an adaptation field, but not a payload

AdaptationFieldAndPayload

indicates that this packet contains both an adaptation field and a payload

Implementations

impl AdaptationControl[src]

pub fn has_payload(self) -> bool[src]

True if this AdaptationControl variant indicates that the packet will have a payload

Trait Implementations

impl Debug for AdaptationControl[src]

impl Eq for AdaptationControl[src]

impl PartialEq<AdaptationControl> for AdaptationControl[src]

impl StructuralEq for AdaptationControl[src]

impl StructuralPartialEq for AdaptationControl[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.