Module libp2p_networking::network::behaviours::dht::store::persistent
source · Expand description
This file contains the PersistentStore struct, which is a wrapper around a RecordStore
that occasionally saves the DHT to a persistent storage.
Structs§
- A
PersistentStoragethat persists the DHT to a file on disk. Used mostly for testing. - A no-op
PersistentStoragethat does not persist the DHT - A
RecordStorewrapper that occasionally saves the DHT to a persistent storage. - A serializable version of a Libp2p
Record
Traits§
- A trait that we use to save and load the DHT to a file on disk or other storage medium
Functions§
- Approximate an
Instantto the number of seconds since the Unix epoch - Convert a unix-second timestamp to an
Instant