[−][src]Struct maildir::MailEntry
This struct represents a single email message inside the maildir. Creation of the struct does not automatically load the content of the email file into memory - however, that may happen upon calling functions that require parsing the email.
Implementations
impl MailEntry
[src]
pub fn id(&self) -> &str
[src]
pub fn parsed(&mut self) -> Result<ParsedMail<'_>, MailEntryError>
[src]
pub fn headers(&mut self) -> Result<Vec<MailHeader<'_>>, MailEntryError>
[src]
pub fn received(&mut self) -> Result<i64, MailEntryError>
[src]
pub fn date(&mut self) -> Result<i64, MailEntryError>
[src]
pub fn flags(&self) -> &str
[src]
pub fn is_draft(&self) -> bool
[src]
pub fn is_flagged(&self) -> bool
[src]
pub fn is_passed(&self) -> bool
[src]
pub fn is_replied(&self) -> bool
[src]
pub fn is_seen(&self) -> bool
[src]
pub fn is_trashed(&self) -> bool
[src]
pub fn path(&self) -> &PathBuf
[src]
Auto Trait Implementations
impl RefUnwindSafe for MailEntry
[src]
impl Send for MailEntry
[src]
impl Sync for MailEntry
[src]
impl Unpin for MailEntry
[src]
impl UnwindSafe for MailEntry
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,