#[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),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]HeaderContainsRawNewline
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]HeaderContainsControlCharacter
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]HeaderContainsNonAscii
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]InvalidHeaderName
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]HeaderLineTooLong
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
DateFormat
EmptyMimeBoundary
InvalidMimeBoundary
MismatchedMimeBoundary
EmptyMultipartParts
MimeNestingTooDeep
InvalidMultipartContentType
UnsupportedAttachmentBody
InvalidContentId
UnsupportedBody
MessageValidation(MessageValidationError)
Trait Implementations§
Source§impl Clone for MessageRenderError
impl Clone for MessageRenderError
Source§fn clone(&self) -> MessageRenderError
fn clone(&self) -> MessageRenderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageRenderError
impl Debug for MessageRenderError
Source§impl Display for MessageRenderError
impl Display 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)>
Returns 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<MessageValidationError> for MessageRenderError
impl From<MessageValidationError> for MessageRenderError
Source§fn from(source: MessageValidationError) -> Self
fn from(source: MessageValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MessageRenderError
impl PartialEq for MessageRenderError
impl Eq for MessageRenderError
impl StructuralPartialEq for MessageRenderError
Auto Trait Implementations§
impl Freeze for MessageRenderError
impl RefUnwindSafe for MessageRenderError
impl Send for MessageRenderError
impl Sync for MessageRenderError
impl Unpin for MessageRenderError
impl UnsafeUnpin for MessageRenderError
impl UnwindSafe for MessageRenderError
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