[−][src]Crate libp2p_kad
Implementation of the libp2p-specific Kademlia protocol.
Re-exports
pub use protocol::KadConnectionType; |
pub use record::store; |
pub use record::Record; |
pub use record::ProviderRecord; |
Modules
| handler | |
| kbucket | Implementation of a Kademlia routing table as used by a single peer participating in a Kademlia DHT. |
| protocol | The Kademlia connection protocol upgrade and associated message types. |
| record | Records and record storage abstraction of the libp2p Kademlia DHT. |
Structs
| AddProviderOk | The successful result of publishing a provider record. |
| Addresses | A non-empty list of (unique) addresses of a peer in the routing table. |
| BootstrapOk | The successful result of |
| GetClosestPeersOk | The successful result of |
| GetProvidersOk | The successful result of |
| GetRecordOk | The successful result of |
| Kademlia | Network behaviour that handles Kademlia. |
| KademliaConfig | The configuration for the |
| PutRecordOk | The successful result of |
| QueryId | Unique identifier for an active query. |
Enums
| AddProviderError | The possible errors when publishing a provider record. |
| BootstrapError | The error result of |
| GetClosestPeersError | The error result of |
| GetProvidersError | The error result of |
| GetRecordError | The error result of |
| KademliaEvent | The events produced by the |
| PutRecordError | The error result of |
| Quorum | 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
| ALPHA_VALUE | The |
| K_VALUE | The |
Type Definitions
| AddProviderResult | The result of publishing a provider record. |
| BootstrapResult | The result of |
| GetClosestPeersResult | The result of |
| GetProvidersResult | The result of |
| GetRecordResult | The result of |
| PutRecordResult | The result of |