Crate storage
Available on crate feature
storage only.Expand description
Provides key-value pair persistent storage on flash.
Currently the same type used for serializing must be used for deserializing. While not doing so won’t cause unsafety, it might return garbage data, or panic.
Structs§
- Postcard
Value - A [
Value] serialized using Postcard. - Storage
- Object holding an instance of a key-value pair storage.
Constants§
- DATA_
BUFFER_ SIZE - Data buffer length.
- MAX_
KEY_ LEN - Maximum key length.
Traits§
- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Serialize
- A data structure that can be serialized into any data format supported by Serde.
Functions§
- erase_
all - Resets the flash in the entire flash range.
- get
- Gets the last stored value from the flash that is associated with the given key.
- insert
- Stores a key-value pair into flash memory.
- lock
- Gets a [
MutexGuard] of the globalStorageobject. - remove
Non- context=stm32 - Deletes an item from flash.