Expand description
Pause state shared between the probe and the tray.
Stored as a single-line file at paths::paused_until_path():
- absent file → not paused
- file containing
indefinite→ paused with no end time - file containing an RFC 3339 timestamp → paused until that instant
Both the probe (which honours the pause in its scheduler) and the tray (which writes the file when the user picks a duration) read and write through this module so the format stays in sync.
Enums§
Functions§
- read_
pause_ state - Read the current pause state from disk. Returns
Nonewhen the file is missing, empty, or the timestamp has already elapsed (treated as “no longer paused”; callers may delete the stale file). - write_
pause_ state - Write the pause state to disk, or remove the file when
None.