#[non_exhaustive]pub enum MessageRenderError {
Show 16 variants
#[non_exhaustive] HeaderContainsRawNewline {
name: String,
},
#[non_exhaustive] HeaderContainsControlCharacter {
name: String,
},
#[non_exhaustive] HeaderContainsNonAscii {
name: String,
},
#[non_exhaustive] InvalidHeaderName {
name: String,
},
#[non_exhaustive] HeaderLineTooLong {
name: String,
},
DateFormat,
EmptyMimeBoundary,
InvalidMimeBoundary,
MismatchedMimeBoundary,
EmptyMultipartParts,
MimeNestingTooDeep,
InvalidMultipartContentType,
UnsupportedAttachmentBody,
InvalidContentId,
UnsupportedBody,
MessageValidation(MessageValidationError),
}Expand description
Errors returned while rendering an RFC 822/MIME message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
#[non_exhaustive]HeaderContainsRawNewline
A header value contains a raw carriage return or line feed.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]HeaderContainsControlCharacter
A header value contains a forbidden control character.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]HeaderContainsNonAscii
A header remains non-ASCII after applicable encoding.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]InvalidHeaderName
A header name violates RFC 5322 field-name syntax.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]HeaderLineTooLong
A header cannot be folded below the RFC 5322 hard line limit.
Fields
This variant is marked as non-exhaustive
DateFormat
The message date could not be formatted as RFC 2822.
EmptyMimeBoundary
A MIME boundary is empty.
InvalidMimeBoundary
A MIME boundary contains bytes forbidden by the supported grammar.
MismatchedMimeBoundary
The content-type boundary parameter differs from the part boundary.
EmptyMultipartParts
A multipart node contains no child parts.
MimeNestingTooDeep
A MIME tree exceeds MAX_MULTIPART_DEPTH.
InvalidMultipartContentType
A multipart node’s content type is not multipart/*.
UnsupportedAttachmentBody
An unresolved attachment reference cannot be rendered.
InvalidContentId
An attachment content id is not a valid message-id value.
UnsupportedBody
The message contains a body variant unsupported by this renderer.
MessageValidation(MessageValidationError)
The message failed baseline outbound validation.
Trait Implementations§
Source§impl Clone for MessageRenderError
impl Clone for MessageRenderError
Source§fn clone(&self) -> MessageRenderError
fn clone(&self) -> MessageRenderError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageRenderError
impl Debug for MessageRenderError
Source§impl Display for MessageRenderError
impl Display for MessageRenderError
impl Eq for MessageRenderError
Source§impl Error for MessageRenderError
impl Error for MessageRenderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()