pub enum SubtitleMode {
Always,
ForeignOnly,
Off,
ForcedOnly,
}Expand description
When subtitles are shown.
Variants§
Always
Always, in a preferred language.
ForeignOnly
Only when the audio is not in a preferred subtitle language.
Off
ForcedOnly
Only forced subtitles (foreign parts, signs) in the audio’s
language. Also any mode this build does not know. (Last, as serde
wants of other.)
Implementations§
Source§impl SubtitleMode
impl SubtitleMode
Sourcepub const ALL: &'static [SubtitleMode]
pub const ALL: &'static [SubtitleMode]
Every value an app offers, in the order a client lists
them: all but Unknown.
Sourcepub fn from_wire_name(name: &str) -> Option<Self>
pub fn from_wire_name(name: &str) -> Option<Self>
The value named name on the wire; None for a name
this build doesn’t know.
Trait Implementations§
Source§impl Clone for SubtitleMode
impl Clone for SubtitleMode
impl Copy for SubtitleMode
Source§impl Debug for SubtitleMode
impl Debug for SubtitleMode
Source§impl Default for SubtitleMode
impl Default for SubtitleMode
Source§impl<'de> Deserialize<'de> for SubtitleMode
impl<'de> Deserialize<'de> for SubtitleMode
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 SubtitleMode
Source§impl PartialEq for SubtitleMode
impl PartialEq for SubtitleMode
Source§impl Serialize for SubtitleMode
impl Serialize for SubtitleMode
impl StructuralPartialEq for SubtitleMode
Auto Trait Implementations§
impl Forget for SubtitleMode
impl Freeze for SubtitleMode
impl Move for SubtitleMode
impl RefUnwindSafe for SubtitleMode
impl Send for SubtitleMode
impl Sync for SubtitleMode
impl Unpin for SubtitleMode
impl UnsafeUnpin for SubtitleMode
impl UnwindSafe for SubtitleMode
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