Struct kademlia_routing_table::DroppedNodeDetails [] [src]

pub struct DroppedNodeDetails {
    pub incomplete_bucket: Option<usize>,
    pub common_groups: bool,
}

This is returned by RoutingTable::drop_connection if a node was dropped.

If the dropped connection was the last one that connected us to one of the table's entries, that node is removed from the table.

Fields

incomplete_bucket: Option<usize>

Some(i) if the entry has been removed from a full bucket with index i, indicating that an attempt to refill that bucket has to be made.

common_groups: bool

Whether we were together in any close group with that contact.

Trait Implementations

impl Debug for DroppedNodeDetails
[src]

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

Formats the value using the given formatter.

impl Eq for DroppedNodeDetails
[src]

impl PartialEq for DroppedNodeDetails
[src]

fn eq(&self, __arg_0: &DroppedNodeDetails) -> bool

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

fn ne(&self, __arg_0: &DroppedNodeDetails) -> bool

This method tests for !=.