Enum mpeg2ts_reader::packet::AdaptationControl
source · pub enum AdaptationControl {
Reserved,
PayloadOnly,
AdaptationFieldOnly,
AdaptationFieldAndPayload,
}Expand description
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
sourceimpl AdaptationControl
impl AdaptationControl
pub fn has_payload(self) -> bool
Trait Implementations
sourceimpl Debug for AdaptationControl
impl Debug for AdaptationControl
sourceimpl PartialEq<AdaptationControl> for AdaptationControl
impl PartialEq<AdaptationControl> for AdaptationControl
sourcefn eq(&self, other: &AdaptationControl) -> bool
fn eq(&self, other: &AdaptationControl) -> bool
impl Eq for AdaptationControl
impl StructuralEq for AdaptationControl
impl StructuralPartialEq for AdaptationControl
Auto Trait Implementations
impl RefUnwindSafe for AdaptationControl
impl Send for AdaptationControl
impl Sync for AdaptationControl
impl Unpin for AdaptationControl
impl UnwindSafe for AdaptationControl
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more