[][src]Struct mpeg2ts_reader::descriptor::registration::RegistrationDescriptor

pub struct RegistrationDescriptor<'buf> {
    pub buf: &'buf [u8],
}

Indicates which kind of syntax any 'private data' within the transport stream will be following

Fields

buf: &'buf [u8]

the registration data bytes

Methods

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

pub const TAG: u8[src]

The descriptor tag value which identifies the descriptor as a RegistrationDescriptor.

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

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

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

Format identifier value assigned by a Registration Authority.

pub fn additional_identification_info(&self) -> &[u8][src]

borrows a slice of additional_identification_info bytes, whose meaning is defined by the identifier returned by format_idenfifier().

Trait Implementations

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

Auto Trait Implementations

impl<'buf> Send for RegistrationDescriptor<'buf>

impl<'buf> Sync for RegistrationDescriptor<'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.