Expand description
Implementation of the libp2p-specific Kademlia protocol.
Modules
Implementation of a Kademlia routing table as used by a single peer participating in a Kademlia DHT.
The Kademlia connection protocol upgrade and associated message types.
Records and record storage abstraction of the libp2p Kademlia DHT.
Structs
The successful result of publishing a provider record.
A non-empty list of (unique) addresses of a peer in the routing table.
The successful result of Kademlia::bootstrap
.
The successful result of Kademlia::get_closest_peers
.
The successful result of Kademlia::get_providers
.
The successful result of Kademlia::get_record
.
Kademlia
is a NetworkBehaviour
that implements the libp2p
Kademlia protocol.
The configuration for the Kademlia
behaviour.
A record either received by the given peer or retrieved from the local record store.
A record stored in the DHT whose value is the ID of a peer who can provide the value on-demand.
The successful result of Kademlia::put_record
.
Unique identifier for an active query.
A mutable reference to a running query.
An immutable reference to a running query.
Execution statistics of a query.
A record stored in the DHT.
Enums
The context of a QueryInfo::AddProvider
query.
The possible errors when publishing a provider record.
The phases of a QueryInfo::AddProvider
query.
The error result of Kademlia::bootstrap
.
The error result of Kademlia::get_closest_peers
.
The error result of Kademlia::get_providers
.
The error result of Kademlia::get_record
.
Status of our connection to a node reported by the Kademlia protocol.
The configurable strategies for the insertion of peers and their addresses into the k-buckets of the Kademlia routing table.
The events produced by the Kademlia
behaviour.
The context of a QueryInfo::PutRecord
query.
The error result of Kademlia::put_record
.
The phases of a QueryInfo::PutRecord
query.
Information about a running query.
The results of Kademlia queries.
A quorum w.r.t. the configured replication factor specifies the minimum number of distinct nodes that must be successfully contacted in order for a query to succeed.
Constants
The α
parameter of the Kademlia specification.
The k
parameter of the Kademlia specification.
Type Definitions
The result of publishing a provider record.
The result of Kademlia::bootstrap
.
The result of Kademlia::get_closest_peers
.
The result of Kademlia::get_providers
.
The result of Kademlia::get_record
.
The result of Kademlia::put_record
.