pub enum SubtitleError {
Io(Error),
UnsupportedFormat {
extension: String,
},
ParseError {
line: usize,
reason: String,
},
NoEvents,
}Expand description
Error type for subtitle parsing operations.
Variants§
Io(Error)
I/O error reading a subtitle file.
UnsupportedFormat
File extension is not a recognized subtitle format.
ParseError
A structural parse error prevents processing the file.
Fields
NoEvents
The input contained no valid subtitle events.
Trait Implementations§
Source§impl Debug for SubtitleError
impl Debug for SubtitleError
Source§impl Display for SubtitleError
impl Display for SubtitleError
Source§impl Error for SubtitleError
impl Error for SubtitleError
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 SubtitleError
impl !RefUnwindSafe for SubtitleError
impl Send for SubtitleError
impl Sync for SubtitleError
impl Unpin for SubtitleError
impl UnsafeUnpin for SubtitleError
impl !UnwindSafe for SubtitleError
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