[][src]Struct mpeg2ts_reader::packet::AdaptationFieldExtension

pub struct AdaptationFieldExtension<'buf> { /* fields omitted */ }

Optional extensions within an AdaptationField.

As returned by AdaptationField::adaptation_field_extension().

Methods

impl<'buf> AdaptationFieldExtension<'buf>[src]

pub fn new(buf: &'buf [u8]) -> AdaptationFieldExtension<'buf>[src]

Create a new structure to parse the adaptation field extension data held within the given slice.

pub fn ltw_offset(&self) -> Result<Option<u16>, AdaptationFieldError>[src]

Returns the 'Legal time window offset', if any.

pub fn piecewise_rate(&self) -> Result<u32, AdaptationFieldError>[src]

Get the value of the piecewise_rate field, or AdaptationFieldError::FieldNotPresent if absent

pub fn seamless_splice(&self) -> Result<SeamlessSplice, AdaptationFieldError>[src]

Get the value of the seamless_splice field, or AdaptationFieldError::FieldNotPresent if absent

Auto Trait Implementations

impl<'buf> Send for AdaptationFieldExtension<'buf>

impl<'buf> Sync for AdaptationFieldExtension<'buf>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.