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
sourceimpl<'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.
Trait Implementations
Auto Trait Implementations
impl<'a, TKey, TVal> RefUnwindSafe for PendingEntry<'a, TKey, TVal> where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
impl<'a, TKey, TVal> Send for PendingEntry<'a, TKey, TVal> where
TKey: Send + Sync,
TVal: Send,
impl<'a, TKey, TVal> Sync for PendingEntry<'a, TKey, TVal> where
TKey: Sync,
TVal: Sync,
impl<'a, TKey, TVal> Unpin for PendingEntry<'a, TKey, TVal>
impl<'a, TKey, TVal> !UnwindSafe for PendingEntry<'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