Struct libp2p_kad::kbucket::PresentEntry
source · pub struct PresentEntry<'a, TKey, TVal>(_);
Expand description
An entry present in a bucket.
Implementations§
source§impl<'a, TKey, TVal> PresentEntry<'a, TKey, TVal>where
TKey: Clone + AsRef<KeyBytes>,
TVal: Clone,
impl<'a, TKey, TVal> PresentEntry<'a, TKey, TVal>where
TKey: Clone + AsRef<KeyBytes>,
TVal: Clone,
sourcepub fn update(&mut self, status: NodeStatus)
pub fn update(&mut self, status: NodeStatus)
Sets the status of the entry to the provided NodeStatus
.