Struct melib::imap::ImapMailbox
source · pub struct ImapMailbox {Show 15 fields
pub hash: MailboxHash,
pub imap_path: String,
pub path: String,
pub name: String,
pub parent: Option<MailboxHash>,
pub children: Vec<MailboxHash>,
pub separator: u8,
pub usage: Arc<RwLock<SpecialUsageMailbox>>,
pub select: Arc<RwLock<Option<SelectResponse>>>,
pub no_select: bool,
pub is_subscribed: bool,
pub permissions: Arc<Mutex<MailboxPermissions>>,
pub exists: Arc<Mutex<LazyCountSet>>,
pub unseen: Arc<Mutex<LazyCountSet>>,
pub warm: Arc<Mutex<bool>>,
}
Fields§
§hash: MailboxHash
§imap_path: String
§path: String
§name: String
§parent: Option<MailboxHash>
§children: Vec<MailboxHash>
§separator: u8
§usage: Arc<RwLock<SpecialUsageMailbox>>
§select: Arc<RwLock<Option<SelectResponse>>>
§no_select: bool
§is_subscribed: bool
§permissions: Arc<Mutex<MailboxPermissions>>
§exists: Arc<Mutex<LazyCountSet>>
§unseen: Arc<Mutex<LazyCountSet>>
§warm: Arc<Mutex<bool>>
Implementations§
Trait Implementations§
source§impl BackendMailbox for ImapMailbox
impl BackendMailbox for ImapMailbox
fn hash(&self) -> MailboxHash
fn children(&self) -> &[MailboxHash]
fn clone(&self) -> Mailbox
fn special_usage(&self) -> SpecialUsageMailbox
fn parent(&self) -> Option<MailboxHash>
fn permissions(&self) -> MailboxPermissions
fn is_subscribed(&self) -> bool
fn set_is_subscribed(&mut self, new_val: bool) -> Result<()>
fn set_special_usage(&mut self, new_val: SpecialUsageMailbox) -> Result<()>
fn count(&self) -> Result<(usize, usize)>
source§impl Clone for ImapMailbox
impl Clone for ImapMailbox
source§fn clone(&self) -> ImapMailbox
fn clone(&self) -> ImapMailbox
Returns a copy of the value. Read more
1.0.0 · 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 ImapMailbox
impl Debug for ImapMailbox
source§impl Default for ImapMailbox
impl Default for ImapMailbox
source§fn default() -> ImapMailbox
fn default() -> ImapMailbox
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImapMailbox
impl RefUnwindSafe for ImapMailbox
impl Send for ImapMailbox
impl Sync for ImapMailbox
impl Unpin for ImapMailbox
impl UnwindSafe for ImapMailbox
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