#[non_exhaustive]pub struct AdaptationField {
pub discontinuity_indicator: bool,
pub random_access_indicator: bool,
pub elementary_stream_priority_indicator: bool,
pub pcr: Option<Pcr>,
pub opcr: Option<Pcr>,
pub splice_countdown: Option<i8>,
}Expand description
Decoded adaptation field — flags plus PCR/OPCR and splice point per ISO/IEC 13818-1:2007 §2.4.3.4. Transport-private data and the adaptation-field extension are not yet surfaced; more fields may be added in future releases.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.discontinuity_indicator: boolA timing/continuity discontinuity starts at this packet.
random_access_indicator: boolThis packet is a random-access point.
elementary_stream_priority_indicator: boolElementary-stream priority hint.
pcr: Option<Pcr>Program Clock Reference, present iff the PCR flag is set.
opcr: Option<Pcr>Original PCR, present iff the OPCR flag is set.
splice_countdown: Option<i8>Splice countdown (packets until the splice point), iff the flag is set.
Trait Implementations§
Source§impl Clone for AdaptationField
impl Clone for AdaptationField
Source§fn clone(&self) -> AdaptationField
fn clone(&self) -> AdaptationField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AdaptationField
Source§impl Debug for AdaptationField
impl Debug for AdaptationField
impl Eq for AdaptationField
Source§impl PartialEq for AdaptationField
impl PartialEq for AdaptationField
Source§fn eq(&self, other: &AdaptationField) -> bool
fn eq(&self, other: &AdaptationField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AdaptationField
impl Serialize for AdaptationField
impl StructuralPartialEq for AdaptationField
Auto Trait Implementations§
impl Freeze for AdaptationField
impl RefUnwindSafe for AdaptationField
impl Send for AdaptationField
impl Sync for AdaptationField
impl Unpin for AdaptationField
impl UnsafeUnpin for AdaptationField
impl UnwindSafe for AdaptationField
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