Module ockam_node::storage

source ·
Expand description

Support for storing persistent values

Structs

Enums

Traits

  • This trait defines a key/value storage
  • This trait needs to be implemented by structs which are used as keys in a key/value file This constraint is necessary due to the persistence of values as JSON in the underlying FileValueStorage
  • This trait defines a storage interface for serializable values It uses a closures in its interface in order to support a transactional behaviour and recovery from errors. If the closure does not return a successful value then no change is performed