Struct mpeg2ts_reader::packet::AdaptationField
source · pub struct AdaptationField<'buf> { /* private fields */ }
Expand description
A collection of fields that may optionally appear within the header of a transport stream
Packet
.
Implementations
sourceimpl<'buf> AdaptationField<'buf>
impl<'buf> AdaptationField<'buf>
pub fn new(buf: &'buf [u8]) -> AdaptationField<'_>
pub fn discontinuity_indicator(&self) -> bool
pub fn random_access_indicator(&self) -> bool
pub fn elementary_stream_priority_indicator(&self) -> u8
pub fn pcr(&self) -> Result<ClockRef, AdaptationFieldError>
sourcepub fn opcr(&self) -> Result<ClockRef, AdaptationFieldError>
pub fn opcr(&self) -> Result<ClockRef, AdaptationFieldError>
Returns the ‘Original Program Clock Reference’ value, is present.
pub fn splice_countdown(&self) -> Result<u8, AdaptationFieldError>
pub fn transport_private_data(&self) -> Result<&[u8], AdaptationFieldError>
pub fn adaptation_field_extension(
&self
) -> Result<AdaptationFieldExtension<'buf>, AdaptationFieldError>
Auto Trait Implementations
impl<'buf> RefUnwindSafe for AdaptationField<'buf>
impl<'buf> Send for AdaptationField<'buf>
impl<'buf> Sync for AdaptationField<'buf>
impl<'buf> Unpin for AdaptationField<'buf>
impl<'buf> UnwindSafe for AdaptationField<'buf>
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