Enum mailparse::MailParseError [−][src]
pub enum MailParseError {
QuotedPrintableDecodeError(QuotedPrintableError),
Base64DecodeError(DecodeError),
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(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
impl Debug for MailParseError[src]
impl Debug for MailParseErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for MailParseError[src]
impl Display for MailParseErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for MailParseError[src]
impl Error for MailParseErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl From<QuotedPrintableError> for MailParseError[src]
impl From<QuotedPrintableError> for MailParseErrorfn from(err: QuotedPrintableError) -> MailParseError[src]
fn from(err: QuotedPrintableError) -> MailParseErrorPerforms the conversion.
impl From<DecodeError> for MailParseError[src]
impl From<DecodeError> for MailParseErrorfn from(err: DecodeError) -> MailParseError[src]
fn from(err: DecodeError) -> MailParseErrorPerforms the conversion.
impl From<Cow<'static, str>> for MailParseError[src]
impl From<Cow<'static, str>> for MailParseErrorfn from(err: Cow<'static, str>) -> MailParseError[src]
fn from(err: Cow<'static, str>) -> MailParseErrorPerforms the conversion.
Auto Trait Implementations
impl Send for MailParseError
impl Send for MailParseErrorimpl Sync for MailParseError
impl Sync for MailParseError