pub struct NotmuchStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl MailStore for NotmuchStore
impl MailStore for NotmuchStore
async fn revision(&self) -> Result<Revision>
async fn accounts(&self) -> Result<Vec<Account>>
async fn search_threads(&self, query: &Query) -> Result<Vec<ThreadSummary>>
async fn count(&self, query: &Query) -> Result<usize>
Source§async fn count_batch(&self, queries: &[String]) -> Result<Vec<u64>>
async fn count_batch(&self, queries: &[String]) -> Result<Vec<u64>>
One count per query, in the order asked. The sidebar wants a number for
every row at once, and one process answers all of them.
async fn thread(&self, id: &ThreadId) -> Result<Thread>
async fn message(&self, id: &MessageId) -> Result<Message>
async fn body(&self, id: &MessageId, options: BodyOptions) -> Result<Body>
async fn part(&self, id: &MessageId, part: &PartId) -> Result<Part>
async fn tag(&self, ops: &[TagOp]) -> Result<Revision>
async fn sync( &self, accounts: &[AccountId], progress: &dyn ProgressSink, ) -> Result<SyncReport>
async fn send(&self, account: &AccountId, raw: &[u8]) -> Result<()>
async fn doctor(&self) -> Doctor
Auto Trait Implementations§
impl !Freeze for NotmuchStore
impl !RefUnwindSafe for NotmuchStore
impl !UnwindSafe for NotmuchStore
impl Send for NotmuchStore
impl Sync for NotmuchStore
impl Unpin for NotmuchStore
impl UnsafeUnpin for NotmuchStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more