Struct libp2p_kad::kbucket::AbsentEntry
source · [−]pub struct AbsentEntry<'a, TKey, TVal>(_);
Expand description
An entry that is not present in any bucket.
Implementations
sourceimpl<'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.
Trait Implementations
Auto Trait Implementations
impl<'a, TKey, TVal> RefUnwindSafe for AbsentEntry<'a, TKey, TVal> where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
impl<'a, TKey, TVal> Send for AbsentEntry<'a, TKey, TVal> where
TKey: Send + Sync,
TVal: Send,
impl<'a, TKey, TVal> Sync for AbsentEntry<'a, TKey, TVal> where
TKey: Sync,
TVal: Sync,
impl<'a, TKey, TVal> Unpin for AbsentEntry<'a, TKey, TVal>
impl<'a, TKey, TVal> !UnwindSafe for AbsentEntry<'a, TKey, TVal>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more