#[non_exhaustive]pub struct MaildirEntry {
pub path: PathBuf,
pub unique_id: String,
pub flags: Flags,
}Expand description
One Maildir entry. Path is the on-disk location; unique_id is the
portion before the separator; flags is parsed from the suffix.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: PathBuf§unique_id: String§flags: FlagsImplementations§
Source§impl MaildirEntry
impl MaildirEntry
Sourcepub fn read(&self) -> Result<RawMessage>
pub fn read(&self) -> Result<RawMessage>
Read the message body. Headers and body are returned in a
RawMessage with envelope_from = None (Maildir doesn’t
carry envelope-from per message).
Trait Implementations§
Source§impl Clone for MaildirEntry
impl Clone for MaildirEntry
Source§fn clone(&self) -> MaildirEntry
fn clone(&self) -> MaildirEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MaildirEntry
impl Debug for MaildirEntry
Source§impl PartialEq for MaildirEntry
impl PartialEq for MaildirEntry
Source§fn eq(&self, other: &MaildirEntry) -> bool
fn eq(&self, other: &MaildirEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MaildirEntry
impl StructuralPartialEq for MaildirEntry
Auto Trait Implementations§
impl Freeze for MaildirEntry
impl RefUnwindSafe for MaildirEntry
impl Send for MaildirEntry
impl Sync for MaildirEntry
impl Unpin for MaildirEntry
impl UnsafeUnpin for MaildirEntry
impl UnwindSafe for MaildirEntry
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