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
PersistentStorage
that persists the DHT to a file on disk. Used mostly for testing. - A no-op
PersistentStorage
that does not persist the DHT - A
RecordStore
wrapper 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
Instant
to the number of seconds since the Unix epoch - Convert a unix-second timestamp to an
Instant