[][src]Trait melib::backends::BackendMailbox

pub trait BackendMailbox: Debug {
    fn hash(&self) -> MailboxHash;
fn name(&self) -> &str;
fn path(&self) -> &str;
fn change_name(&mut self, new_name: &str);
fn clone(&self) -> Mailbox;
fn children(&self) -> &[MailboxHash];
fn parent(&self) -> Option<MailboxHash>;
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 special_usage(&self) -> SpecialUsageMailbox;
fn permissions(&self) -> MailboxPermissions;
fn count(&self) -> Result<(usize, usize)>; }

Required methods

fn hash(&self) -> MailboxHash

fn name(&self) -> &str

fn path(&self) -> &str

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

fn change_name(&mut self, new_name: &str)

fn clone(&self) -> Mailbox

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

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

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 special_usage(&self) -> SpecialUsageMailbox

fn permissions(&self) -> MailboxPermissions

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

Loading content...

Implementors

impl BackendMailbox for ImapMailbox[src]

impl BackendMailbox for JmapMailbox[src]

impl BackendMailbox for MaildirMailbox[src]

impl BackendMailbox for MboxMailbox[src]

impl BackendMailbox for NntpMailbox[src]

impl BackendMailbox for NotmuchMailbox[src]

Loading content...