Enum mailparse::MailParseError
source · 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(QuotedPrintableError)
Data that was specified as being in the quoted-printable transfer-encoding could not be successfully decoded as quoted-printable data.
Base64DecodeError(DecodeError)
Data that was specified as being in the base64 transfer-encoding could not be successfully decoded as base64 data.
EncodingError(Cow<'static, str>)
An error occurred when converting the raw byte data to Rust UTF-8 string format using the charset specified in the message.
Generic(&'static str)
Some other error occurred while parsing the message; the description string provides additional details.
Trait Implementations§
source§impl Debug for MailParseError
impl Debug for MailParseError
source§impl Display for MailParseError
impl Display for MailParseError
source§impl Error for MailParseError
impl Error for MailParseError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DecodeError> for MailParseError
impl From<DecodeError> for MailParseError
source§fn from(err: DecodeError) -> MailParseError
fn from(err: DecodeError) -> MailParseError
Converts to this type from the input type.
source§impl From<QuotedPrintableError> for MailParseError
impl From<QuotedPrintableError> for MailParseError
source§fn from(err: QuotedPrintableError) -> MailParseError
fn from(err: QuotedPrintableError) -> MailParseError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MailParseError
impl RefUnwindSafe for MailParseError
impl Send for MailParseError
impl Sync for MailParseError
impl Unpin for MailParseError
impl UnwindSafe for MailParseError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more