Struct dht::Node
[−]
[src]
pub struct Node<TId> { pub address: SocketAddr, pub id: TId, }
Structure representing a node in system.
Every node has an address (IP and port) and a numeric ID, which is used to calculate metrics and look up data.
Fields
address: SocketAddr
Network address of the node.
id: TId
ID of the node.
Trait Implementations
impl<TId: Clone> Clone for Node<TId>
[src]
fn clone(&self) -> Node<TId>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more