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.
pub fn set<F>(x: F) -> Result<()>where
F: FnOnce(&mut PersistentState),Set the persistent state.
This method updates the persistent state and writes it to the file immediately!
This method is thread-safe.