pub enum TrackReason {
Override,
Preferences,
FileDefault,
NotWanted,
NoneMatched,
NoTracks,
Unknown,
}Expand description
Why a track was chosen, or why none was.
Variants§
Override
What the viewer picked for this series or movie.
Preferences
The viewer’s preferences.
FileDefault
No preferred language is in the file: its default track.
NotWanted
The preferences want none here (subtitles off, or the audio is already in a preferred subtitle language).
NoneMatched
Wanted, but no track fits (e.g. only SDH, and SDH is avoided).
NoTracks
The file has no tracks of this kind.
Unknown
A reason this build does not know.
Trait Implementations§
Source§impl Clone for TrackReason
impl Clone for TrackReason
impl Copy for TrackReason
Source§impl Debug for TrackReason
impl Debug for TrackReason
Source§impl<'de> Deserialize<'de> for TrackReason
impl<'de> Deserialize<'de> for TrackReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TrackReason
Source§impl PartialEq for TrackReason
impl PartialEq for TrackReason
Source§impl Serialize for TrackReason
impl Serialize for TrackReason
impl StructuralPartialEq for TrackReason
Auto Trait Implementations§
impl Forget for TrackReason
impl Freeze for TrackReason
impl Move for TrackReason
impl RefUnwindSafe for TrackReason
impl Send for TrackReason
impl Sync for TrackReason
impl Unpin for TrackReason
impl UnsafeUnpin for TrackReason
impl UnwindSafe for TrackReason
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