Enum srtparse::Error
[−]
[src]
pub enum Error { BadPosition, BadTime, BadTimeFormat, MissingStartTime, MissingEndTime, MissingText, OpenFile(IoError), ReadFile(IoError), }
Describes all errors that may occur
Variants
BadPosition
An error when parsing subtitle position
BadTime
An error when parsing subtitle time
BadTimeFormat
Unsupported subtitle time format
MissingStartTime
Subtitle start time is missing
MissingEndTime
Subtitle end time is missing
MissingText
Subtitle text is missing
OpenFile(IoError)
Unable to open a file
ReadFile(IoError)
Unable to subtitles from a file
Trait Implementations
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&StdError>
The lower-level cause of this error, if any. Read more