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

pub struct DbConnection {
    pub lib: Arc<Library>,
    pub inner: Arc<RwLock<*mut notmuch_database_t>>,
    pub revision_uuid: Arc<RwLock<u64>>,
    pub database_ph: PhantomData<&'static mut notmuch_database_t>,
}

Fields

lib: Arc<Library>inner: Arc<RwLock<*mut notmuch_database_t>>revision_uuid: Arc<RwLock<u64>>database_ph: PhantomData<&'static mut notmuch_database_t>

Implementations

impl DbConnection[src]

pub fn get_revision_uuid(&self) -> u64[src]

fn refresh(
    &mut self,
    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>>>,
    account_hash: AccountHash,
    event_consumer: BackendEventConsumer,
    new_revision_uuid: u64
) -> Result<()>
[src]

Trait Implementations

impl Debug for DbConnection[src]

impl Drop for DbConnection[src]

impl Send for DbConnection[src]

impl Sync for DbConnection[src]

Auto Trait Implementations

impl RefUnwindSafe for DbConnection

impl Unpin for DbConnection

impl !UnwindSafe for DbConnection

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]