pub struct AdaptationControl(/* private fields */);
Expand description
Representation of the adaptation_field_control
field from the Transport Stream packet header.
The methods on this type indicate whether a Packet
’s adaptation_field()
and payload()
methods will return Some
or None
.
Implementations§
Source§impl AdaptationControl
impl AdaptationControl
Sourcepub fn has_payload(&self) -> bool
pub fn has_payload(&self) -> bool
True if the adaptation_field_control
indicates that the packet will have a payload
Sourcepub fn has_adaptation_field(&self) -> bool
pub fn has_adaptation_field(&self) -> bool
True if the adaptation_field_control
field indicates that the packet will have an
adaptation field.
Trait Implementations§
Source§impl Debug for AdaptationControl
impl Debug for AdaptationControl
Source§impl PartialEq for AdaptationControl
impl PartialEq for AdaptationControl
impl Eq for AdaptationControl
impl StructuralPartialEq for AdaptationControl
Auto Trait Implementations§
impl Freeze for AdaptationControl
impl RefUnwindSafe for AdaptationControl
impl Send for AdaptationControl
impl Sync for AdaptationControl
impl Unpin for AdaptationControl
impl UnwindSafe for AdaptationControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more