pub struct AppState {
pub store: Arc<NotmuchStore>,
pub tokens: Arc<RwLock<TokenStore>>,
pub events: EventBus,
pub read_only: bool,
/* private fields */
}Fields§
§store: Arc<NotmuchStore>§tokens: Arc<RwLock<TokenStore>>§events: EventBus§read_only: boolImplementations§
Source§impl AppState
impl AppState
pub fn new( store: Arc<NotmuchStore>, tokens: TokenStore, read_only: bool, ) -> Self
pub async fn requires_auth(&self) -> bool
Sourcepub async fn note_own_write(&self, revision: &Revision)
pub async fn note_own_write(&self, revision: &Revision)
Remembers what a tag write left the database at. notmuch synchronises
maildir flags, so dropping unread renames the file — which the
delivery watcher sees, and would otherwise announce as new mail.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppState
impl !UnwindSafe for AppState
impl Freeze for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
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