Crate nuts_memory

Source
Expand description

A sample nuts_backend::Backend implementation which stores the data in memory.

This implementation is mainly used for demonstration, testing and documentation.

It stores the content of the data blocks in a hash indexed by the Id of this backend, where the id is a simple u32 value.

Structs§

Id
The id of the memory backend.
MemoryBackend
The Backend implementation itself.
Settings

Enums§

Error
Error used by the memory backend.

Functions§

deserialize_header
serialize_header