Enum kademlia_routing_table::Destination [] [src]

pub enum Destination<N> {
    Group(N, usize),
    Node(N),
}

A message destination.

Variants

The k-group of the given address. The message should reach the k closest nodes.

The individual node at the given address. The message should reach exactly one node.

Methods

impl<N> Destination<N>
[src]

Returns the name of the destination, i. e. the node or group address.

Returns true if the destination os a group, and false if it is an individual node.

Trait Implementations

impl<N: Copy> Copy for Destination<N>
[src]

impl<N: Clone> Clone for Destination<N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<N: Debug> Debug for Destination<N>
[src]

Formats the value using the given formatter.

impl<N: Eq> Eq for Destination<N>
[src]

impl<N: PartialEq> PartialEq for Destination<N>
[src]

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

This method tests for !=.