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
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
Data that was specified as being in the base64 transfer-encoding could not be successfully decoded as base64 data.
Tuple Fields of Base64DecodeError
0: DecodeErrorAn error occurred when converting the raw byte data to Rust UTF-8 string format using the charset specified in the message.
Some other error occurred while parsing the message; the description string provides additional details.
Tuple Fields of Generic
0: &'static strTrait Implementations
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
use the Display impl or to_string()
Performs the conversion.
Performs the conversion.
Performs the conversion.