Struct libp2p_kad::kbucket::AbsentEntry
source · pub struct AbsentEntry<'a, TKey, TVal>(_);
Expand description
An entry that is not present in any bucket.
Implementations§
source§impl<'a, TKey, TVal> AbsentEntry<'a, TKey, TVal>where
TKey: Clone + AsRef<KeyBytes>,
TVal: Clone,
impl<'a, TKey, TVal> AbsentEntry<'a, TKey, TVal>where
TKey: Clone + AsRef<KeyBytes>,
TVal: Clone,
sourcepub fn insert(self, value: TVal, status: NodeStatus) -> InsertResult<TKey>
pub fn insert(self, value: TVal, status: NodeStatus) -> InsertResult<TKey>
Attempts to insert the entry into a bucket.