Enum quoted_printable::QuotedPrintableError [] [src]

pub enum QuotedPrintableError {
    InvalidByte,
    LineTooLong,
    IncompleteHexOctet,
    InvalidHexOctet,
    LowercaseHexOctet,
}

An error type that represents different kinds of decoding errors.

Variants

A byte was found in the input that was outside of the allowed range. The allowed range is the horizontal tab (ASCII 0x09), CR/LF characters (ASCII 0x0D and 0x0A), and anything in the ASCII range 0x20 to 0x7E, inclusive.

Lines where found in the input that exceeded 76 bytes in length, excluding the terminating CRLF.

An '=' character was found in the input without the proper number of hex-characters following it. This includes '=' characters followed by a single character and then the CRLF pair, for example.

An '=' character was found with two following characters, but they were not hex characters. '=Hi' for example would be an invalid encoding.

An '=' character was found with two following hex characters, but the hex characters were lowercase rather than uppercase. The spec explicitly requires uppercase hex to be used, so this is considered an error.

Trait Implementations

impl Debug for QuotedPrintableError
[src]

Formats the value using the given formatter.

impl Display for QuotedPrintableError
[src]

Formats the value using the given formatter. Read more

impl Error for QuotedPrintableError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more