pub enum Mood {
Settled,
Working,
Look,
AtRisk,
Danger,
}Expand description
What the icon is saying, which for most people is the whole of this tool’s interface.
One question, answered continuously: is my work safe. Somebody who never opens the menu and never reads a notification should still be able to glance at the clock and know the answer, and a person who learns to ignore it entirely is the success case rather than a failure.
Ordered, because the icon can only be one colour and what it shows is the worst thing currently true.
Variants§
Settled
Watching, and everything that was saved has landed.
Working
A save is on its way back into its container. Seen for a moment and gone.
The least important of these and the one most worth having. Pressing Save and seeing nothing happen anywhere is what makes a person doubt the tool is running at all, and it is the first thing that was noticed missing. It sits below the warnings because a flicker must never hide one.
Look
Worth a look, with nothing at risk: a decision waiting, or a container that did not open because the desktop had nothing to open it with.
AtRisk
Work that is not in its container — a write-back that failed, or a container that moved out from under a session. The one thing this tool promises is that a save reaches the container, and this is that promise outstanding.
Danger
Danger, and nothing else may use it or it stops meaning anything. Today that is one thing: a content file that is a program wearing a document’s name.
Trait Implementations§
impl Copy for Mood
impl Eq for Mood
Source§impl Ord for Mood
impl Ord for Mood
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Mood
impl PartialOrd for Mood
impl StructuralPartialEq for Mood
Auto Trait Implementations§
impl Freeze for Mood
impl RefUnwindSafe for Mood
impl Send for Mood
impl Sync for Mood
impl Unpin for Mood
impl UnsafeUnpin for Mood
impl UnwindSafe for Mood
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.