Skip to main content

Module stats

Module stats 

Source

StructsΒ§

DayBucket
Digest
LoggedEvent
Logger
Background writer for events.jsonl. log is fire-and-forget over an mpsc channel; the writer thread holds write_lock while appending so clear_log can take the same lock to safely truncate without racing an in-flight write.
PostponeFollowThrough
PreviousPeriod
SuppressionByKind
SuppressionCount
WeekdayBucket

EnumsΒ§

EventPayload
GuardReason
Outcome
SkipSource

FunctionsΒ§

append_one πŸ”’
clear_log
Remove events.jsonl. Takes the shared writer lock so an in-flight append from the Logger worker thread can finish first β€” without it, the writer could re-create the file between our remove_file and the next event landing.
compute_digest
compute_postpone_follow_through πŸ”’
For every BreakPostponed event inside [range_start, now], look forward in the (chronologically ordered) event stream for the next BreakEnd or BreakSkipped of the same kind and bucket the outcome. Intervening postpones of the same kind don’t resolve β€” we keep scanning. A postpone with no later resolution in the log counts as unresolved.
export_csv
guard_str πŸ”’
kind_str πŸ”’
outcome_str πŸ”’
read_all
weekday_index πŸ”’

Type AliasesΒ§

CsvFields πŸ”’