Re-exportsยง
pub use bucket::Bucket;
pub use bucket::BucketEntry;
pub use bucket::EntryStatusFlag;
pub use bucket::CONNECTED_ENTRY;
pub use bucket::DISCONNECTED_ENTRY;
pub use bucket::INCOMPATIBLE_ENTRY;
pub use bucket::PENDING_ENTRY;
pub use bucket::UNREACHABLE_ENTRY;
pub use bucket::UNSTABLE_ENTRY;
pub use entry::xor_distance;
pub use entry::Entry;
pub use entry::Key;
Modulesยง
Structsยง
- This is a modified version of the Kademlia Distributed Hash Table (DHT). https://en.wikipedia.org/wiki/Kademlia
Enumsยง
- Represents the possible result when adding a new entry.
Constantsยง
- DISTANCE_
LIMIT ๐The distance limit for the closest buckets. - The maximum number of matched subnets allowed within a single bucket.
- The maximum number of matched subnets across the entire routing table.
- TABLE_
SIZE ๐The total number of buckets in the routing table.
Functionsยง
- subnet_
match ๐Check if two addresses belong to the same subnet.