Struct kipa_lib::Node[][src]

pub struct Node {
    pub address: Address,
    pub key: Key,
}

A node in the network

Fields

The address of the node used for communicating with it

The key of the node used for locating it

Methods

impl Node
[src]

Create a new node with some Address and Key

Trait Implementations

impl Into<Result<Node>> for Node
[src]

Performs the conversion.

impl Clone for Node
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Node
[src]

impl PartialEq for Node
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Node
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Display for Node
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Node

impl Sync for Node