Expand description
This crate handles persisting data types to disk with a variety of backends.
Re-exports§
Modules§
- file
- A
Persistbackend that atomically saves the value to a locked file on disk. - memory
- An in-memory
Persistbackend that holds the value without writing it anywhere.
Traits§
- Persist
- The
Persisttrait provides a wrapper around a value that can be saved in a persistent way. A minimal implementation provides anErrortype, apersistfunction to persist the value, and anas_mutfunction to get a mutable reference to the value in memory. - Persist
Ext - Extension methods provided for every
Persistimplementation.