pub enum QuotedPrintableError {
InvalidByte,
LineTooLong,
IncompleteHexOctet,
InvalidHexOctet,
LowercaseHexOctet,
}
Expand description
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§
source§impl Clone for QuotedPrintableError
impl Clone for QuotedPrintableError
source§fn clone(&self) -> QuotedPrintableError
fn clone(&self) -> QuotedPrintableError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QuotedPrintableError
impl Debug for QuotedPrintableError
source§impl Display for QuotedPrintableError
impl Display for QuotedPrintableError
source§impl Error for QuotedPrintableError
impl Error for QuotedPrintableError
source§fn description(&self) -> &str
fn description(&self) -> &str
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
source§impl Hash for QuotedPrintableError
impl Hash for QuotedPrintableError
source§impl Ord for QuotedPrintableError
impl Ord for QuotedPrintableError
source§fn cmp(&self, other: &QuotedPrintableError) -> Ordering
fn cmp(&self, other: &QuotedPrintableError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<QuotedPrintableError> for QuotedPrintableError
impl PartialEq<QuotedPrintableError> for QuotedPrintableError
source§fn eq(&self, other: &QuotedPrintableError) -> bool
fn eq(&self, other: &QuotedPrintableError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<QuotedPrintableError> for QuotedPrintableError
impl PartialOrd<QuotedPrintableError> for QuotedPrintableError
source§fn partial_cmp(&self, other: &QuotedPrintableError) -> Option<Ordering>
fn partial_cmp(&self, other: &QuotedPrintableError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more