[][src]Struct melib::backends::maildir::MaildirType

pub struct MaildirType {
    name: String,
    mailboxes: HashMap<MailboxHash, MaildirMailbox>,
    mailbox_index: Arc<Mutex<HashMap<EnvelopeHash, MailboxHash>>>,
    hash_indexes: HashIndexes,
    event_consumer: BackendEventConsumer,
    path: PathBuf,
}

Maildir backend https://cr.yp.to/proto/maildir.html

Fields

name: Stringmailboxes: HashMap<MailboxHash, MaildirMailbox>mailbox_index: Arc<Mutex<HashMap<EnvelopeHash, MailboxHash>>>hash_indexes: HashIndexesevent_consumer: BackendEventConsumerpath: PathBuf

Implementations

impl MaildirType[src]

pub fn new(
    settings: &AccountSettings,
    is_subscribed: Box<dyn Fn(&str) -> bool>,
    event_consumer: BackendEventConsumer
) -> Result<Box<dyn MailBackend>>
[src]

pub fn save_to_mailbox(
    path: PathBuf,
    bytes: Vec<u8>,
    flags: Option<Flag>
) -> Result<()>
[src]

pub fn validate_config(s: &AccountSettings) -> Result<()>[src]

Trait Implementations

impl Debug for MaildirType[src]

impl MailBackend for MaildirType[src]

Auto Trait Implementations

impl !RefUnwindSafe for MaildirType

impl Send for MaildirType

impl Sync for MaildirType

impl Unpin for MaildirType

impl !UnwindSafe for MaildirType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]