Struct mpeg2ts_reader::descriptor::max_bitrate::MaximumBitrateDescriptor[][src]

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

Describes the max bitrate of an elementary stream or a whole program.

Implementations

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

pub const TAG: u8[src]

The descriptor tag value which identifies the descriptor as an MaximumBitrateDescriptor.

pub fn new(
    tag: u8,
    buf: &'buf [u8]
) -> Result<MaximumBitrateDescriptor<'buf>, DescriptorError>
[src]

Construct a MaximumBitrateDescriptor instance that will parse the data from the given slice.

pub fn maximum_bitrate(&self) -> u32[src]

The maximum bitrate expressed in units of 50 bytes per second

pub fn maximum_bits_per_second(&self) -> u32[src]

Convenience method which converts the result of maximum_bitrate() into a bits-per-second value.

Trait Implementations

impl Debug for MaximumBitrateDescriptor<'_>[src]

Auto Trait Implementations

impl<'buf> RefUnwindSafe for MaximumBitrateDescriptor<'buf>

impl<'buf> Send for MaximumBitrateDescriptor<'buf>

impl<'buf> Sync for MaximumBitrateDescriptor<'buf>

impl<'buf> Unpin for MaximumBitrateDescriptor<'buf>

impl<'buf> UnwindSafe for MaximumBitrateDescriptor<'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.