Implementation of a Kademlia routing table as used by a single peer participating in a Kademlia DHT.
The entry point for the API of this module is a
When the bucket associated with the
Key of an inserted entry is full
but contains disconnected nodes, it accepts a
Pending entries are inserted lazily when their timeout is found to be expired
upon querying the
KBucketsTable. When that happens, the
AppliedPending result which must be consumed by calling
regularly and / or after performing lookup operations like
An entry that is not present in any bucket.
The result of applying a pending node to a bucket, possibly replacing an existing node.
A distance between two keys in the DHT keyspace.
An immutable by-reference view of a bucket entry.
A cloned, immutable view of an entry that is either present in a bucket or pending insertion.
A reference to a bucket in a
The raw bytes of a key in the DHT keyspace.
An immutable by-reference view of a
An entry waiting for a slot to be available in a bucket.
An entry present in a bucket.
A reference into a single entry of a
The result of inserting an entry into a bucket.
The status of a node in a bucket.