Skip to main content

load_or_initialize

Function load_or_initialize 

Source
pub fn load_or_initialize(config: &Config) -> Result<Timer, TimerError>
Expand description

Load or initialize the persisted state file.

ยงErrors

  • Fails if the home directory cannot be found
  • Fails if the state directory cannot be created
  • Fails if the state file is not writeable