pub type KademliaBucketInserts = BucketInserts;
👎Deprecated: Import the kad module instead and refer to this type as kad::BucketInserts.

Aliased Type§

enum KademliaBucketInserts {
    OnConnected,
    Manual,
}

Variants§

§

OnConnected

Whenever a connection to a peer is established as a result of a dialing attempt and that peer is not yet in the routing table, it is inserted as long as there is a free slot in the corresponding k-bucket. If the k-bucket is full but still has a free pending slot, it may be inserted into the routing table at a later time if an unresponsive disconnected peer is evicted from the bucket.

§

Manual

New peers and addresses are only added to the routing table via explicit calls to Behaviour::add_address.

Note: Even though peers can only get into the routing table as a result of Behaviour::add_address, routing table entries are still updated as peers connect and disconnect (i.e. the order of the entries as well as the network addresses).