pub enum BitmapPreference {
Pictures,
Text,
}Expand description
How a viewer wants picture subtitles shown: read as text by the server, so any device shows them styled and sized, or as the pictures they are.
Variants§
Pictures
Drawn by the device if it can, else burned into the video.
Text
Read as text when the server can read the track; else as
Pictures. Also any value this build does not know. (Last, as
serde wants of other.)
Implementations§
Source§impl BitmapPreference
impl BitmapPreference
Sourcepub const ALL: &'static [BitmapPreference]
pub const ALL: &'static [BitmapPreference]
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 BitmapPreference
impl Clone for BitmapPreference
impl Copy for BitmapPreference
Source§impl Debug for BitmapPreference
impl Debug for BitmapPreference
Source§impl Default for BitmapPreference
impl Default for BitmapPreference
Source§impl<'de> Deserialize<'de> for BitmapPreference
impl<'de> Deserialize<'de> for BitmapPreference
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 BitmapPreference
Source§impl PartialEq for BitmapPreference
impl PartialEq for BitmapPreference
Source§impl Serialize for BitmapPreference
impl Serialize for BitmapPreference
impl StructuralPartialEq for BitmapPreference
Auto Trait Implementations§
impl Freeze for BitmapPreference
impl RefUnwindSafe for BitmapPreference
impl Send for BitmapPreference
impl Sync for BitmapPreference
impl Unpin for BitmapPreference
impl UnsafeUnpin for BitmapPreference
impl UnwindSafe for BitmapPreference
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