Enum kademlia_routing_table::Destination [] [src]

pub enum Destination<'a> {
    Group(&'a XorName),
    Node(&'a XorName),
}

A message destination.

Variants

Group(&'a XorName)

The close group of the given address. The message should reach GROUP_SIZE nodes.

Node(&'a XorName)

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

Trait Implementations

impl<'a> Debug for Destination<'a>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> Clone for Destination<'a>
[src]

fn clone(&self) -> Destination<'a>

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

impl<'a> Copy for Destination<'a>
[src]