Enum mailparse::MailParseError [] [src]

pub enum MailParseError {
    QuotedPrintableDecodeError(QuotedPrintableError),
    Base64DecodeError(Base64Error),
    EncodingError(Cow<'static, str>),
    Generic(&'static str),
}

An error type that represents the different kinds of errors that may be encountered during message parsing.

Variants

QuotedPrintableDecodeError

Data that was specified as being in the quoted-printable transfer-encoding could not be successfully decoded as quoted-printable data.

Base64DecodeError

Data that was specified as being in the base64 transfer-encoding could not be successfully decoded as base64 data.

EncodingError

An error occurred when converting the raw byte data to Rust UTF-8 string format using the charset specified in the message.

Generic

Some other error occurred while parsing the message; the description string provides additional details.

Trait Implementations

impl Display for MailParseError

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

impl Error for MailParseError

fn description(&self) -> &str

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

impl From<QuotedPrintableError> for MailParseError

fn from(err: QuotedPrintableError) -> MailParseError

impl From<Base64Error> for MailParseError

fn from(err: Base64Error) -> MailParseError

impl From<Cow<'static, str>> for MailParseError

fn from(err: Cow<'static, str>) -> MailParseError

Derived Implementations

impl Debug for MailParseError

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