Struct kademlia_routing_table::AddedNodeDetails [] [src]

pub struct AddedNodeDetails<T: ContactInfo> {
    pub must_notify: Vec<T>,
    pub unneeded: Vec<T>,
}

This is returned by RoutingTable::add_node if a new node has been added.

Fields

The list of contacts that need to be notified about the new node: If the bucket was already full, that's nobody, but if it wasn't, everyone with a bucket index greater than the new nodes' must be notified.

List of contacts no longer within the close group at the bucket index of the contact added.

Trait Implementations

impl<T: PartialEq + ContactInfo> PartialEq for AddedNodeDetails<T>
[src]

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

This method tests for !=.

impl<T: Eq + ContactInfo> Eq for AddedNodeDetails<T>
[src]

impl<T: Debug + ContactInfo> Debug for AddedNodeDetails<T>
[src]

Formats the value using the given formatter.