pub enum TrayCountdownSnapshot {
Disabled,
Paused,
Bedtime,
OnBreak,
Suppressed(SuppressReason),
Idle,
Running(u64),
}Expand description
One-second snapshot of what the tray ticker should display.
Drives both the icon swap (Normal / Paused / Inactive / Bedtime) and
the adjacent text. Disabled means the user has turned the text-
countdown setting off; visual states (Paused / Bedtime / OnBreak /
Suppressed) still take precedence so the icon stays accurate.
Suppressed carries the specific guard that’s silencing breaks so
the tray can spell out why in its title and tooltip — without
that, the inactive icon looked identical to a user-initiated pause.
Variants§
Trait Implementations§
Source§impl Clone for TrayCountdownSnapshot
impl Clone for TrayCountdownSnapshot
Source§fn clone(&self) -> TrayCountdownSnapshot
fn clone(&self) -> TrayCountdownSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrayCountdownSnapshot
impl Debug for TrayCountdownSnapshot
Source§impl PartialEq for TrayCountdownSnapshot
impl PartialEq for TrayCountdownSnapshot
impl Copy for TrayCountdownSnapshot
impl Eq for TrayCountdownSnapshot
impl StructuralPartialEq for TrayCountdownSnapshot
Auto Trait Implementations§
impl Freeze for TrayCountdownSnapshot
impl RefUnwindSafe for TrayCountdownSnapshot
impl Send for TrayCountdownSnapshot
impl Sync for TrayCountdownSnapshot
impl Unpin for TrayCountdownSnapshot
impl UnsafeUnpin for TrayCountdownSnapshot
impl UnwindSafe for TrayCountdownSnapshot
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.