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

A convenient variant for String.

Parsing a .ssa/.ass file failed.

Parsing a .idx file failed.

Parsing a .srt file failed.

Parsing a .sub (VobSub) file failed.

Parsing a .sub (MicroDVD) file failed.

Converting byte-stream to string failed.

The file format is not supported by this library.

The file format is not supported by this library.

The attempted operation does not work on binary subtitle formats.

The attempted operation does not work on this format (not supported in this version of this library).

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for ErrorKind

Formats the value using the given formatter.

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl From<ErrorKind> for ErrorKind

Parsing a .ssa/.ass file failed.

Performs the conversion.

impl From<ErrorKind> for ErrorKind

Parsing a .idx file failed.

Performs the conversion.

impl From<ErrorKind> for ErrorKind

Parsing a .srt file failed.

Performs the conversion.

impl From<ErrorKind> for ErrorKind

Parsing a .sub (VobSub) file failed.

Performs the conversion.

impl From<ErrorKind> for ErrorKind

Parsing a .sub (MicroDVD) file failed.

Performs the conversion.

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.