Struct libp2p_kad::kbucket::PendingEntry
source · pub struct PendingEntry<'a, TKey, TVal>(_);
Expand description
An entry waiting for a slot to be available in a bucket.
Implementations§
source§impl<'a, TKey, TVal> PendingEntry<'a, TKey, TVal>where
TKey: Clone + AsRef<KeyBytes>,
TVal: Clone,
impl<'a, TKey, TVal> PendingEntry<'a, TKey, TVal>where
TKey: Clone + AsRef<KeyBytes>,
TVal: Clone,
sourcepub fn update(self, status: NodeStatus) -> PendingEntry<'a, TKey, TVal>
pub fn update(self, status: NodeStatus) -> PendingEntry<'a, TKey, TVal>
Updates the status of the pending entry.