#[non_exhaustive]pub enum CaptionImportError {
MissingWebVttHeader,
FileTooLarge {
bytes: usize,
maximum: usize,
},
TooManyCues {
maximum: usize,
},
TooManyRows {
rows: usize,
maximum: usize,
},
}Expand description
Why a file is not a subtitle file at all.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingWebVttHeader
A WebVTT file does not begin with WEBVTT.
FileTooLarge
The file is larger than MAX_CAPTION_FILE_BYTES.
TooManyCues
The file holds more than MAX_CAPTION_FILE_CUES cues.
TooManyRows
The cues need more caption tracks than a project holds: too many
overlap at once, or there are too many to fit
MAX_CLIPS_PER_TRACK to a track.
Trait Implementations§
Source§impl Clone for CaptionImportError
impl Clone for CaptionImportError
impl Copy for CaptionImportError
Source§impl Debug for CaptionImportError
impl Debug for CaptionImportError
Source§impl Display for CaptionImportError
impl Display for CaptionImportError
impl Eq for CaptionImportError
Source§impl Error for CaptionImportError
impl Error for CaptionImportError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CaptionImportError
impl PartialEq for CaptionImportError
impl StructuralPartialEq for CaptionImportError
Auto Trait Implementations§
impl Freeze for CaptionImportError
impl RefUnwindSafe for CaptionImportError
impl Send for CaptionImportError
impl Sync for CaptionImportError
impl Unpin for CaptionImportError
impl UnsafeUnpin for CaptionImportError
impl UnwindSafe for CaptionImportError
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