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
ReservedThis value is used if the transport stream packet adaptation_control field uses the value
0b00, which is not defined by the spec.
PayloadOnlyindicates that this packet contains a payload, but not an adaptation field
AdaptationFieldOnlyindicates that this packet contains an adaptation field, but not a payload
AdaptationFieldAndPayloadindicates that this packet contains both an adaptation field and a payload
Methods
impl AdaptationControl[src]
pub fn has_payload(self) -> bool[src]
Trait Implementations
impl Eq for AdaptationControl[src]
impl PartialEq for AdaptationControl[src]
fn eq(&self, __arg_0: &AdaptationControl) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.