Enum subparse::errors::ErrorKind
[−]
pub enum ErrorKind {
Msg(String),
SsaError(ErrorKind),
IdxError(ErrorKind),
SrtError(ErrorKind),
FromUtf8Error(FromUtf8Error),
UnknownFileFormat,
}The kind of an error.
Variants
Msg(String)A convenient variant for String.
SsaError(ErrorKind)Parsing a .ssa/.ass file failed.
IdxError(ErrorKind)Parsing a .idx file failed.
SrtError(ErrorKind)Parsing a .srt file failed.
FromUtf8Error(FromUtf8Error)Converting byte-stream to string failed.
UnknownFileFormatThe file format is not supported by this library.
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl Debug for ErrorKind
impl Display for ErrorKind
impl From<ErrorKind> for ErrorKind
Parsing a .ssa/.ass file failed.
impl From<ErrorKind> for ErrorKind
Parsing a .idx file failed.
impl From<ErrorKind> for ErrorKind
Parsing a .srt file failed.