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

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

Optional extensions within an AdaptationField.

As returned by AdaptationField::adaptation_field_extension().

Implementations

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

pub fn new(
    buf: &'buf [u8]
) -> Result<AdaptationFieldExtension<'buf>, AdaptationFieldError>
[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

Trait Implementations

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

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.