Enum kademlia_routing_table::Destination
[−]
[src]
pub enum Destination<N> { Group(N, usize), Node(N), }
A message destination.
Variants
Group(N, usize)
The k
-group of the given address. The message should reach the k
closest nodes.
Node(N)
The individual node at the given address. The message should reach exactly one node.
Methods
impl<N> Destination<N>
[src]
fn name(&self) -> &N
Returns the name of the destination, i. e. the node or group address.
fn is_group(&self) -> bool
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]
fn clone(&self) -> Destination<N>
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<N: Debug> Debug for Destination<N>
[src]
impl<N: Eq> Eq for Destination<N>
[src]
impl<N: PartialEq> PartialEq for Destination<N>
[src]
fn eq(&self, __arg_0: &Destination<N>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Destination<N>) -> bool
This method tests for !=
.