Struct mpeg2ts_reader::descriptor::iso_639_language::Language
source · pub struct Language<'buf> { /* private fields */ }
Expand description
One of potentially many pieces of language metadata within an Iso639LanguageDescriptor
.
Implementations§
source§impl<'buf> Language<'buf>
impl<'buf> Language<'buf>
sourcepub fn code(&self, trap: DecoderTrap) -> Result<String, Cow<'static, str>>
pub fn code(&self, trap: DecoderTrap) -> Result<String, Cow<'static, str>>
Returns a string containing the ISO-639 language code of the elementary stream to which this descriptor is attached.
sourcepub fn audio_type(&self) -> AudioType
pub fn audio_type(&self) -> AudioType
Returns an AudioType
variant indicating what role this audio track plays within the
program.
Trait Implementations§
Auto Trait Implementations§
impl<'buf> RefUnwindSafe for Language<'buf>
impl<'buf> Send for Language<'buf>
impl<'buf> Sync for Language<'buf>
impl<'buf> Unpin for Language<'buf>
impl<'buf> UnwindSafe for Language<'buf>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more