Struct mpeg2ts_reader::packet::AdaptationFieldExtension
source · pub struct AdaptationFieldExtension<'buf> { /* private fields */ }
Expand description
Optional extensions within an AdaptationField
.
As returned by
AdaptationField::adaptation_field_extension()
.
Implementations§
source§impl<'buf> AdaptationFieldExtension<'buf>
impl<'buf> AdaptationFieldExtension<'buf>
sourcepub fn new(
buf: &'buf [u8]
) -> Result<AdaptationFieldExtension<'buf>, AdaptationFieldError>
pub fn new( buf: &'buf [u8] ) -> Result<AdaptationFieldExtension<'buf>, AdaptationFieldError>
Create a new structure to parse the adaptation field extension data held within the given slice.
sourcepub fn ltw_offset(&self) -> Result<Option<u16>, AdaptationFieldError>
pub fn ltw_offset(&self) -> Result<Option<u16>, AdaptationFieldError>
Returns the ‘Legal time window offset’, if any.
sourcepub fn piecewise_rate(&self) -> Result<u32, AdaptationFieldError>
pub fn piecewise_rate(&self) -> Result<u32, AdaptationFieldError>
Get the value of the piecewise_rate field,
or AdaptationFieldError::FieldNotPresent
if absent
sourcepub fn seamless_splice(&self) -> Result<SeamlessSplice, AdaptationFieldError>
pub fn seamless_splice(&self) -> Result<SeamlessSplice, AdaptationFieldError>
Get the value of the seamless_splice field,
or AdaptationFieldError::FieldNotPresent
if absent
Trait Implementations§
Auto Trait Implementations§
impl<'buf> RefUnwindSafe for AdaptationFieldExtension<'buf>
impl<'buf> Send for AdaptationFieldExtension<'buf>
impl<'buf> Sync for AdaptationFieldExtension<'buf>
impl<'buf> Unpin for AdaptationFieldExtension<'buf>
impl<'buf> UnwindSafe for AdaptationFieldExtension<'buf>
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