pub struct Message { /* private fields */ }Expand description
A message of an mbox: its contents and the metadata of its separator line.
Implementations§
Source§impl Message
impl Message
Sourcepub fn internal_date(&self) -> u64
pub fn internal_date(&self) -> u64
The date of the separator line, in seconds since the UNIX epoch; 0 when it is missing or does not parse.
Sourcepub fn contents(&self) -> &[u8] ⓘ
pub fn contents(&self) -> &[u8] ⓘ
The message, ready for crate::MessageParser::parse.
Sourcepub fn unwrap_contents(self) -> Vec<u8> ⓘ
pub fn unwrap_contents(self) -> Vec<u8> ⓘ
Takes the message contents.
Trait Implementations§
impl Eq for Message
Source§impl Ord for Message
impl Ord for Message
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Message
impl PartialOrd for Message
impl StructuralPartialEq for Message
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