pub struct Message { /* private fields */ }Expand description
A raw RFC 5322 message as bytes.
Held as bytes rather than a parsed structure because DKIM verification
is canonicalization-sensitive: the signature covers the exact bytes,
so re-serializing a parsed form would break it. Parsing (via
mail-parser) is done on demand, never destructively.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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