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§

source§

impl ImapMailbox

source

pub fn imap_path(&self) -> &str

source

pub fn set_warm(&self, new_value: bool)

Establish that mailbox contents have been fetched at least once during this execution

source

pub fn is_warm(&self) -> bool

Mailbox contents have been fetched at least once during this execution

source

pub fn is_cold(&self) -> bool

Mailbox contents have not been fetched at all during this execution

Trait Implementations§

source§

impl BackendMailbox for ImapMailbox

source§

fn hash(&self) -> MailboxHash

source§

fn name(&self) -> &str

Final component of path.
source§

fn path(&self) -> &str

Path of mailbox within the mailbox hierarchy, with / as separator.
source§

fn children(&self) -> &[MailboxHash]

source§

fn clone(&self) -> Mailbox

source§

fn special_usage(&self) -> SpecialUsageMailbox

source§

fn parent(&self) -> Option<MailboxHash>

source§

fn permissions(&self) -> MailboxPermissions

source§

fn is_subscribed(&self) -> bool

source§

fn set_is_subscribed(&mut self, new_val: bool) -> Result<()>

source§

fn set_special_usage(&mut self, new_val: SpecialUsageMailbox) -> Result<()>

source§

fn count(&self) -> Result<(usize, usize)>

source§

impl Clone for ImapMailbox

source§

fn clone(&self) -> ImapMailbox

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ImapMailbox

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for ImapMailbox

source§

fn default() -> ImapMailbox

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more