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
This value is used if the transport stream packet adaptation_control
field uses the value
0b00
, which is not defined by the spec.
indicates that this packet contains a payload, but not an adaptation field
indicates that this packet contains an adaptation field, but not a payload
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]
fn eq(&self, other: &AdaptationControl) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ne(&self, other: &Rhs) -> boolimpl StructuralEq for AdaptationControl
[src]
impl StructuralPartialEq for AdaptationControl
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,