#[non_exhaustive]pub enum TextFormat {
Vtt,
Ttml,
Utf8,
Unknown(String),
}Expand description
The serialization format of a text track’s frames.
The frame timestamp always carries the cue’s start time (so the media-agnostic relay never parses the payload); the payload carries the cue itself in this format.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Vtt
WebVTT. Each frame’s payload is a self-contained WEBVTT segment whose cues carry absolute
timing, so a consumer can render it without prior context.
Ttml
TTML / IMSC1 (W3C IMSC). Each frame’s payload is one complete TTML document with absolute
timing, clipped to the frame: its body begins at the frame timestamp.
Utf8
Raw UTF-8 text with no embedded timing or styling. Each cue is shown from its frame timestamp until the next cue (an empty payload clears the caption), i.e. roll-up captions.
Unknown(String)
An unknown or unsupported format string, preserved verbatim so a newer format survives an older consumer.
Trait Implementations§
Source§impl Clone for TextFormat
impl Clone for TextFormat
Source§impl Debug for TextFormat
impl Debug for TextFormat
Source§impl Default for TextFormat
impl Default for TextFormat
Source§impl Display for TextFormat
impl Display for TextFormat
impl Eq for TextFormat
Source§impl FromStr for TextFormat
impl FromStr for TextFormat
Source§impl PartialEq for TextFormat
impl PartialEq for TextFormat
impl StructuralPartialEq for TextFormat
Auto Trait Implementations§
impl Freeze for TextFormat
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnsafeUnpin for TextFormat
impl UnwindSafe for TextFormat
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
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<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
key and return true if they are equal.