Enum mailparse::MailParseError[][src]

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

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.

Tuple Fields of QuotedPrintableDecodeError

0: QuotedPrintableError
Base64DecodeError

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

Tuple Fields of Base64DecodeError

0: DecodeError
EncodingError

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

Tuple Fields of EncodingError

0: Cow<'static, str>
Generic

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

Tuple Fields of Generic

0: &'static str

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.