Enum subparse::errors::ErrorKind
[−]
pub enum ErrorKind { Msg(String), SsaError(ErrorKind), IdxError(ErrorKind), SrtError(ErrorKind), VobError(ErrorKind), MdvdError(ErrorKind), FromUtf8Error(FromUtf8Error), UnknownFileFormat, DecodingError, TextFormatOnly, UpdatingEntriesNotSupported(SubtitleFormat), }
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.
VobError(ErrorKind)
Parsing a .sub
(VobSub) file failed.
MdvdError(ErrorKind)
Parsing a .sub
(MicroDVD) file failed.
FromUtf8Error(FromUtf8Error)
Converting byte-stream to string failed.
UnknownFileFormat
The file format is not supported by this library.
DecodingError
The file format is not supported by this library.
TextFormatOnly
The attempted operation does not work on binary subtitle formats.
UpdatingEntriesNotSupported(SubtitleFormat)
The attempted operation does not work on this format (not supported in this version of 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.
impl From<ErrorKind> for ErrorKind
Parsing a .sub
(VobSub) file failed.
impl From<ErrorKind> for ErrorKind
Parsing a .sub
(MicroDVD) file failed.