pub struct BreakStats {
pub taken: u32,
pub skipped: u32,
pub postponed: u32,
}Expand description
In-session break counters surfaced to the Insights tab.
Reset every time the scheduler starts; the persistent stats live in
the JSONL event log under crate::stats. postponed counts each
postpone, not unique breaks.
Fields§
§taken: u32§skipped: u32§postponed: u32Implementations§
Trait Implementations§
Source§impl Clone for BreakStats
impl Clone for BreakStats
Source§fn clone(&self) -> BreakStats
fn clone(&self) -> BreakStats
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 BreakStats
impl Debug for BreakStats
Source§impl Default for BreakStats
impl Default for BreakStats
Source§fn default() -> BreakStats
fn default() -> BreakStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BreakStats
impl RefUnwindSafe for BreakStats
impl Send for BreakStats
impl Sync for BreakStats
impl Unpin for BreakStats
impl UnsafeUnpin for BreakStats
impl UnwindSafe for BreakStats
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.