Characteristic

Enum Characteristic 

Source
#[repr(u8)]
pub enum Characteristic {
Show 18 variants Forcedsubtitles = 0, Describesvideo = 1, Easytoread = 2, Framebased = 3, Mainprogram = 4, Originalcontent = 5, Voiceovertranslation = 6, Caption = 7, Subtitle = 8, Alternate = 9, Supplementary = 10, Commentary = 11, Dubbedtranslation = 12, Description = 13, Metadata = 14, Enhancedaudiointelligibility = 15, Emergency = 16, Karaoke = 17,
}

Variants§

§

Forcedsubtitles = 0

Textual information meant for display when no other text representation is selected. It is used to clarify dialogue, alternate languages, texted graphics or location/person IDs that are not otherwise covered in the dubbed/localized audio.

§

Describesvideo = 1

Textual or audio media component containing a textual description (intended for audio synthesis) or an audio description describing a visual component

§

Easytoread = 2

Simplified or reduced captions as specified in [United States Code Title 47 CFR 79.103(c)(9)].

§

Framebased = 3

A media characteristic that indicates that a track selection option includes frame-based content.

§

Mainprogram = 4

Main media component(s) which is/are intended for presentation if no other information is provided

§

Originalcontent = 5

A media characteristic that indicates that a track or media selection option contains original content.

§

Voiceovertranslation = 6

A media characteristic that indicates that a track or media selection option contains a language translation and verbal interpretation of spoken dialog.

§

Caption = 7

Textual media component containing transcriptions of spoken dialog and auditory cues such as sound effects and music for the hearing impaired.

§

Subtitle = 8

Textual transcriptions of spoken dialog.

§

Alternate = 9

Textual media component containing transcriptions of spoken dialog and auditory cues such as sound effects and music for the hearing impaired.

§

Supplementary = 10

Media content component that is supplementary to a media content component of a different media component type.

§

Commentary = 11

Experience that contains a commentary (e.g. director’s commentary) (typically audio)

§

Dubbedtranslation = 12

Experience that contains an element that is presented in a different language from the original (e.g. dubbed audio, translated captions)

§

Description = 13

Textual or audio media component containing a textual description (intended for audio synthesis) or an audio description describing a visual component

§

Metadata = 14

Media component containing information intended to be processed by application specific elements.

§

Enhancedaudiointelligibility = 15

Experience containing an element for improved intelligibility of the dialogue.

§

Emergency = 16

Experience that provides information, about a current emergency, that is intended to enable the protection of life, health, safety, and property, and may also include critical details regarding the emergency and how to respond to the emergency.

§

Karaoke = 17

Textual representation of a songs’ lyrics, usually in the same language as the associated song as specified in [SMPTE ST 2067-2].

Implementations§

Source§

impl Characteristic

Source

pub fn from_u8(value: u8) -> Option<Self>

Convert from u8 value

Source

pub fn to_u8(self) -> u8

Convert to u8 value

Trait Implementations§

Source§

impl Clone for Characteristic

Source§

fn clone(&self) -> Characteristic

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Characteristic

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Characteristic

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<Characteristic> for u8

Source§

fn from(val: Characteristic) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Characteristic

Source§

fn eq(&self, other: &Characteristic) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Characteristic

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for Characteristic

Source§

impl Eq for Characteristic

Source§

impl StructuralPartialEq for Characteristic

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,