pub(super) struct GuardOutcome {
pub reason: SuppressReason,
pub log_as: Option<GuardReason>,
}Expand description
Result of evaluating the per-tick suppression guards: either no
guard fires, or exactly one wins and dictates the tray icon
(reason) plus whether the event-log records a GuardSuppress
entry (log_as).
work_window deliberately doesn’t log — it’s a scheduled silence
(the user said “no breaks outside 09:00–17:00”), not an unexpected
suppression worth logging once per second.
Fields§
§reason: SuppressReason§log_as: Option<GuardReason>Trait Implementations§
Source§impl Clone for GuardOutcome
impl Clone for GuardOutcome
Source§fn clone(&self) -> GuardOutcome
fn clone(&self) -> GuardOutcome
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 GuardOutcome
impl Debug for GuardOutcome
Source§impl PartialEq for GuardOutcome
impl PartialEq for GuardOutcome
impl Copy for GuardOutcome
impl Eq for GuardOutcome
impl StructuralPartialEq for GuardOutcome
Auto Trait Implementations§
impl Freeze for GuardOutcome
impl RefUnwindSafe for GuardOutcome
impl Send for GuardOutcome
impl Sync for GuardOutcome
impl Unpin for GuardOutcome
impl UnsafeUnpin for GuardOutcome
impl UnwindSafe for GuardOutcome
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.