Crate dht [] [src]

Distributed Hash Table.

The goal of this project is to provide flexible implementation of DHT for different kind of Rust applications. There will be loosely coupled parts:

  1. DHT neighborhood table implementation, will be represented by GenericNodeTable trait and KNodeTable implementation.
  2. Generic DHT logic implementation in Service and service::Handler structures.
  3. Generic bits for implementing protocols in service::Handler structure and protocol module.
  4. (In the future) simple implementations for testing purposes.

Reexports

pub use service::Service;

Modules

protocol

Generic protocol bits for implementing custom protocols.

service

Protocol-agnostic service implementation

Structs

KNodeTable

Kademlia node table.

Node

Structure representing a node in system.

Traits

GenericId

Generalization of num::BigUint, with hexadecimal encoding and decoding

GenericNodeTable

Trait representing table with known nodes.