pub enum VttParseError {
InvalidFormat,
InvalidHours,
InvalidMinutes,
InvalidSeconds,
InvalidMilliseconds,
InvalidSetting(String),
MissingHeader,
InvalidMetadataLine(String),
}
Expand description
An error type representing possible parsing failures in WebVTT data.
Variants§
InvalidFormat
The provided data does not conform to the expected format.
InvalidHours
The hours component of a timestamp is invalid.
InvalidMinutes
The minutes component of a timestamp is invalid.
InvalidSeconds
The seconds component of a timestamp is invalid.
InvalidMilliseconds
The milliseconds component of a timestamp is invalid.
InvalidSetting(String)
A setting within a cue is invalid.
MissingHeader
The WebVTT header is missing.
InvalidMetadataLine(String)
A metadata line is invalid.
Trait Implementations§
Source§impl Debug for VttParseError
impl Debug for VttParseError
Source§impl Display for VttParseError
impl Display for VttParseError
Source§impl Error for VttParseError
impl Error for VttParseError
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()
Auto Trait Implementations§
impl Freeze for VttParseError
impl RefUnwindSafe for VttParseError
impl Send for VttParseError
impl Sync for VttParseError
impl Unpin for VttParseError
impl UnwindSafe for VttParseError
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