pub enum BedtimeAction {
Fire,
ResetTimersOnly,
NotInWindow,
}Expand description
Decision returned by decide_bedtime — fully captures what the tick
should do with the bedtime window. The caller still performs the
side effects (overlay, hooks, logging, timer mutation).
Variants§
Fire
In the bedtime window AND it’s time to (re)show the prompt.
ResetTimersOnly
In the bedtime window but the per-window interval hasn’t elapsed since the last prompt — only reset the micro/long anchors so they don’t pile up while the user is winding down.
NotInWindow
Outside the bedtime window — bedtime branch is a no-op this tick.
Trait Implementations§
Source§impl Clone for BedtimeAction
impl Clone for BedtimeAction
Source§fn clone(&self) -> BedtimeAction
fn clone(&self) -> BedtimeAction
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 BedtimeAction
impl Debug for BedtimeAction
Source§impl PartialEq for BedtimeAction
impl PartialEq for BedtimeAction
impl Copy for BedtimeAction
impl Eq for BedtimeAction
impl StructuralPartialEq for BedtimeAction
Auto Trait Implementations§
impl Freeze for BedtimeAction
impl RefUnwindSafe for BedtimeAction
impl Send for BedtimeAction
impl Sync for BedtimeAction
impl Unpin for BedtimeAction
impl UnsafeUnpin for BedtimeAction
impl UnwindSafe for BedtimeAction
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.