Enum libp2p::kad::KademliaBucketInserts [−][src]
The configurable strategies for the insertion of peers and their addresses into the k-buckets of the Kademlia routing table.
Variants
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.
New peers and addresses are only added to the routing table via
explicit calls to Kademlia::add_address
.
Note: Even though peers can only get into the routing table as a result of
Kademlia::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).
Trait Implementations
impl Clone for KademliaBucketInserts
[src]
pub fn clone(&self) -> KademliaBucketInserts
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for KademliaBucketInserts
[src]
impl Debug for KademliaBucketInserts
[src]
impl Eq for KademliaBucketInserts
[src]
impl PartialEq<KademliaBucketInserts> for KademliaBucketInserts
[src]
pub fn eq(&self, other: &KademliaBucketInserts) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for KademliaBucketInserts
[src]
impl StructuralPartialEq for KademliaBucketInserts
[src]
Auto Trait Implementations
impl RefUnwindSafe for KademliaBucketInserts
impl Send for KademliaBucketInserts
impl Sync for KademliaBucketInserts
impl Unpin for KademliaBucketInserts
impl UnwindSafe for KademliaBucketInserts
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,