Struct kademlia_routing_table::NodeInfo
[−]
[src]
pub struct NodeInfo<T, U> { pub public_id: T, pub connections: Vec<U>, }
Allows user defined data for routing table
Fields
public_id: T
container for node in routing table
connections: Vec<U>
connection object, may be socket etc.
Methods
impl<T: PartialEq + HasName + Debug, U: PartialEq> NodeInfo<T, U>
[src]
fn new(public_id: T, connections: Vec<U>) -> NodeInfo<T, U>
constructor
fn name(&self) -> &XorName
name of routing table entry
Trait Implementations
impl<T: Eq, U: Eq> Eq for NodeInfo<T, U>
[src]
impl<T: PartialEq, U: PartialEq> PartialEq for NodeInfo<T, U>
[src]
fn eq(&self, __arg_0: &NodeInfo<T, U>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NodeInfo<T, U>) -> bool
This method tests for !=
.
impl<T: Debug, U: Debug> Debug for NodeInfo<T, U>
[src]
impl<T: Clone, U: Clone> Clone for NodeInfo<T, U>
[src]
fn clone(&self) -> NodeInfo<T, U>
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