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]
buf: &'buf [u8]
) -> Result<AdaptationFieldExtension<'buf>, AdaptationFieldError>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,