Struct mpeg2ts_reader::descriptor::registration::RegistrationDescriptor [−][src]
pub struct RegistrationDescriptor<'buf> { /* fields omitted */ }Indicates which kind of syntax any ‘private data’ within the transport stream will be following
Implementations
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]
tag: u8,
buf: &'buf [u8]
) -> Result<RegistrationDescriptor<'buf>, DescriptorError>
Construct a RegistrationDescriptor instance that will parse the data from the given
slice.
pub fn format_identifier(&self) -> FormatIdentifier[src]
Format identifier value assigned by a Registration Authority.
Note that the FormatIdentifier type defines numerous constants for identifiers registered
with the SMPTE RA, which you can use in tests like so:
use smptera_format_identifiers_rust::FormatIdentifier; if descriptor.format_identifier() == FormatIdentifier::CUEI { // perform some interesting action }
pub fn is_format(&self, id: FormatIdentifier) -> bool[src]
Returns true if the given identifier is equal to the value returned by format_identifier()
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_identifier().
Trait Implementations
impl<'buf> Debug for RegistrationDescriptor<'buf>[src]
Auto Trait Implementations
impl<'buf> RefUnwindSafe for RegistrationDescriptor<'buf>
impl<'buf> Send for RegistrationDescriptor<'buf>
impl<'buf> Sync for RegistrationDescriptor<'buf>
impl<'buf> Unpin for RegistrationDescriptor<'buf>
impl<'buf> UnwindSafe for RegistrationDescriptor<'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>,