Enum quoted_printable::QuotedPrintableError [] [src]

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

An error type that represents different kinds of decoding errors.

Variants

InvalidByte

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 0x0A and 0x0D), and anything in the ASCII range 0x20 to 0x7E, inclusive.

LineTooLong

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

IncompleteHexOctet

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.

InvalidHexOctet

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

LowercaseHexOctet

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]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for QuotedPrintableError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for QuotedPrintableError
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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