Function set

Source
pub fn set<F>(x: F) -> Result<()>
where F: FnOnce(&mut PersistentState),
Expand description

Set the persistent state.

This method updates the persistent state and writes it to the file immediately!

This method is thread-safe.