[][src]Struct melib::backends::mbox::MboxType

pub struct MboxType {
    account_name: String,
    path: PathBuf,
    mailbox_index: Arc<Mutex<HashMap<EnvelopeHash, MailboxHash>>>,
    mailboxes: Arc<Mutex<HashMap<MailboxHash, MboxMailbox>>>,
    prefer_mbox_type: Option<MboxReader>,
    event_consumer: BackendEventConsumer,
}

Mbox backend

Fields

account_name: Stringpath: PathBufmailbox_index: Arc<Mutex<HashMap<EnvelopeHash, MailboxHash>>>mailboxes: Arc<Mutex<HashMap<MailboxHash, MboxMailbox>>>prefer_mbox_type: Option<MboxReader>event_consumer: BackendEventConsumer

Implementations

impl MboxType[src]

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

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

Trait Implementations

impl Debug for MboxType[src]

impl MailBackend for MboxType[src]

Auto Trait Implementations

impl !RefUnwindSafe for MboxType

impl Send for MboxType

impl Sync for MboxType

impl Unpin for MboxType

impl !UnwindSafe for MboxType

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]