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]
impl AdaptationControlpub fn has_payload(self) -> bool[src]
pub fn has_payload(self) -> boolTrait Implementations
impl Eq for AdaptationControl[src]
impl Eq for AdaptationControlimpl PartialEq for AdaptationControl[src]
impl PartialEq for AdaptationControlfn eq(&self, other: &AdaptationControl) -> bool[src]
fn eq(&self, other: &AdaptationControl) -> boolThis 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]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Debug for AdaptationControl[src]
impl Debug for AdaptationControlAuto Trait Implementations
impl Send for AdaptationControl
impl Send for AdaptationControlimpl Sync for AdaptationControl
impl Sync for AdaptationControl