Struct kademlia_dht::Node[][src]

pub struct Node { /* fields omitted */ }

A node in the Kademlia DHT.

Methods

impl Node
[src]

Constructs a new Node on a specific ip and port, and bootstraps the node with an existing node if bootstrap is not None.

Inserts a key-value pair into the DHT.

Gets the value associated with a particular key in the DHT. Returns None if the key was not found.

Returns the NodeData associated with the node.

Kills the current node and all active threads.

Trait Implementations

impl Clone for Node
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Node

impl Sync for Node