[][src]Struct melib::backends::notmuch::NotmuchDb

pub struct NotmuchDb {
    lib: Arc<Library>,
    revision_uuid: Arc<RwLock<u64>>,
    mailboxes: Arc<RwLock<HashMap<MailboxHash, NotmuchMailbox>>>,
    index: Arc<RwLock<HashMap<EnvelopeHash, CString>>>,
    mailbox_index: Arc<RwLock<HashMap<EnvelopeHash, SmallVec<[MailboxHash; 16]>>>>,
    tag_index: Arc<RwLock<BTreeMap<u64, String>>>,
    path: PathBuf,
    account_name: Arc<String>,
    event_consumer: BackendEventConsumer,
    save_messages_to: Option<PathBuf>,
}

Fields

lib: Arc<Library>revision_uuid: Arc<RwLock<u64>>mailboxes: Arc<RwLock<HashMap<MailboxHash, NotmuchMailbox>>>index: Arc<RwLock<HashMap<EnvelopeHash, CString>>>mailbox_index: Arc<RwLock<HashMap<EnvelopeHash, SmallVec<[MailboxHash; 16]>>>>tag_index: Arc<RwLock<BTreeMap<u64, String>>>path: PathBufaccount_name: Arc<String>event_consumer: BackendEventConsumersave_messages_to: Option<PathBuf>

Implementations

impl NotmuchDb[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]

fn new_connection(
    path: &Path,
    revision_uuid: Arc<RwLock<u64>>,
    lib: Arc<Library>,
    write: bool
) -> Result<DbConnection>
[src]

Trait Implementations

impl Debug for NotmuchDb[src]

impl MailBackend for NotmuchDb[src]

impl Send for NotmuchDb[src]

impl Sync for NotmuchDb[src]

Auto Trait Implementations

impl !RefUnwindSafe for NotmuchDb

impl Unpin for NotmuchDb

impl !UnwindSafe for NotmuchDb

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]