Skip to main content

load

Function load 

Source
pub fn load() -> Value
Expand description

Read the state file, or an empty document.

A missing, unreadable or malformed file all yield the empty document rather than an error. This file is bookkeeping: refusing to work because it is corrupt would turn a cosmetic problem into an outage, and the next write repairs it.