pub enum Notice {
Info(String),
Error(String),
Synced {
deleted: usize,
updated: usize,
},
NewMail(String),
}Expand description
One thing worth telling the user, in the operation’s own terms.
Info and Error carry prose, which is all most outcomes are.
A variant earns its own shape when something other than a person
wants to read it: a test asserting on what a sync did should not
have to parse a sentence.
Variants§
Info(String)
Error(String)
Synced
A mailbox sync that got through: messages purged, and flag changes written back.
NewMail(String)
Mail has arrived, where the prose says. A front end asked for mutt’s $beep_new needs to know that without reading the sentence, which is what earns this its own shape.
Implementations§
Trait Implementations§
impl Eq for Notice
impl StructuralPartialEq for Notice
Auto Trait Implementations§
impl Freeze for Notice
impl RefUnwindSafe for Notice
impl Send for Notice
impl Sync for Notice
impl Unpin for Notice
impl UnsafeUnpin for Notice
impl UnwindSafe for Notice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.