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

Network address of the node.

ID of the node.

Trait Implementations

impl<TId: Clone> Clone for Node<TId>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<TId: Debug> Debug for Node<TId>
[src]

Formats the value using the given formatter.

impl<TId> Encodable for Node<TId> where TId: GenericId
[src]

Serialize a value using an Encoder.

impl<TId> Decodable for Node<TId> where TId: GenericId
[src]

Deserialize a value using a Decoder.