pub enum SubtitleType {
Vtt,
Srt,
Sub,
Ass,
Ttxt,
Ttml,
Sami,
Wvtt,
Stpp,
Eia608,
Unknown,
}
Variants§
Vtt
W3C WebVTT, as used in particular for HTML5 media
Srt
SubRip
Sub
MPSub
Ass
Advanced Substation Alpha
Ttxt
MPEG-4 Timed Text, aka MP4TT aka 3GPP-TT (codec=tx3g)
Ttml
Timed Text Markup Language
Sami
Synchronized Accessible Media Interchange
Wvtt
Binary WebVTT in a wvtt box in fragmented MP4 container, as specified by ISO/IEC 14496-30:2014. Mostly intended for live streams where it’s not possible to provide a standalone VTT file.
Stpp
XML content (generally TTML) in an stpp box in fragmented MP4 container
Eia608
EIA-608 aka CEA-608, a legacy standard for closed captioning for NTSC TV
Unknown
Trait Implementations§
Source§impl Clone for SubtitleType
impl Clone for SubtitleType
Source§fn clone(&self) -> SubtitleType
fn clone(&self) -> SubtitleType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SubtitleType
impl Debug for SubtitleType
Source§impl PartialEq for SubtitleType
impl PartialEq for SubtitleType
impl Copy for SubtitleType
impl Eq for SubtitleType
impl StructuralPartialEq for SubtitleType
Auto Trait Implementations§
impl Freeze for SubtitleType
impl RefUnwindSafe for SubtitleType
impl Send for SubtitleType
impl Sync for SubtitleType
impl Unpin for SubtitleType
impl UnwindSafe for SubtitleType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.