pub struct Message { /* private fields */ }Expand description
An email message stored in an m2dir.
Note that this implementation does not actually verify that the backing file contains a valid email message, as it has no need to parse the contents.
Implementations§
Source§impl Message
impl Message
pub fn path(&self) -> &Path
pub fn id(&self) -> &str
pub fn flags_path(&self) -> PathBuf
pub fn flags(&self) -> Result<Flags, Error>
pub fn set_flags(&self, flags: &Flags) -> Result<(), Error>
pub fn copy_to(&self, target: &M2dir) -> Result<Message, Error>
pub fn move_to(&mut self, target: &M2dir) -> Result<(), Error>
pub fn delete(self) -> Result<(), Error>
Trait Implementations§
impl Eq 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 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