pub struct Mailbox { /* private fields */ }Expand description
Mailbox metadata
Implementations§
Source§impl Mailbox
impl Mailbox
Sourcepub fn new(path: MailboxPath) -> Self
pub fn new(path: MailboxPath) -> Self
Create a new mailbox
Sourcepub fn new_with_special_use(path: MailboxPath, special_use: String) -> Self
pub fn new_with_special_use(path: MailboxPath, special_use: String) -> Self
Create a new mailbox with special-use attribute
Sourcepub fn path(&self) -> &MailboxPath
pub fn path(&self) -> &MailboxPath
Get the mailbox path
Sourcepub fn set_path(&mut self, path: MailboxPath)
pub fn set_path(&mut self, path: MailboxPath)
Set the mailbox path (for rename operations)
Sourcepub fn uid_validity(&self) -> u32
pub fn uid_validity(&self) -> u32
Get UID validity
Sourcepub fn special_use(&self) -> Option<&str>
pub fn special_use(&self) -> Option<&str>
Get special-use attribute
Sourcepub fn set_special_use(&mut self, special_use: Option<String>)
pub fn set_special_use(&mut self, special_use: Option<String>)
Set special-use attribute
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mailbox
impl<'de> Deserialize<'de> for Mailbox
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Mailbox
impl RefUnwindSafe for Mailbox
impl Send for Mailbox
impl Sync for Mailbox
impl Unpin for Mailbox
impl UnsafeUnpin for Mailbox
impl UnwindSafe for Mailbox
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more