Enum libp2p_kad::RoutingUpdate
source · pub enum RoutingUpdate {
Success,
Pending,
Failed,
}
Expand description
The possible outcomes of Kademlia::add_address
.
Variants§
Success
The given peer and address has been added to the routing table.
Pending
The peer and address is pending insertion into
the routing table, if a disconnected peer fails
to respond. If the given peer and address ends up
in the routing table, KademliaEvent::RoutingUpdated
is eventually emitted.
Failed
The routing table update failed, either because the corresponding bucket for the peer is full and the pending slot(s) are occupied, or because the given peer ID is deemed invalid (e.g. refers to the local peer ID).