Skip to main content

Module timer

Module timer 

Source
Expand description

Timer implementations

Timers are created using the Timer struct.

There are two types of timers:

  1. The TimerType::Warning timer that emits a warning to the user’s configured From email address upon expiration.
  2. The TimerType::DeadMan timer that will trigger the message and optional attachment to the user’s configured To email address upon expiration.

Structs§

State
The state struct.
Timer
The timer struct.

Enums§

TimerType
The timer enum.

Functions§

file_path
Get the persisted state file path.
load_or_initialize
Load or initialize the persisted state file.
persist_state_blocking
Blocking persistence of state.
system_time_epoch