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 copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more