[][src]Enum quoted_printable::QuotedPrintableError

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 0x0D and 0x0A), 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 Display for QuotedPrintableError[src]

impl Debug for QuotedPrintableError[src]

impl Error for QuotedPrintableError[src]

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

Auto Trait Implementations

impl Send for QuotedPrintableError

impl Sync for QuotedPrintableError

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]