Struct libp2p_kad::kbucket::PresentEntry
source · pub struct PresentEntry<'a, TKey, TVal>(/* private fields */);
Expand description
An entry present in a bucket.
Implementations§
source§impl<'a, TKey, TVal> PresentEntry<'a, TKey, TVal>
impl<'a, TKey, TVal> PresentEntry<'a, TKey, TVal>
sourcepub fn update(&mut self, status: NodeStatus)
pub fn update(&mut self, status: NodeStatus)
Sets the status of the entry to the provided NodeStatus
.
Trait Implementations§
Auto Trait Implementations§
impl<'a, TKey, TVal> Freeze for PresentEntry<'a, TKey, TVal>
impl<'a, TKey, TVal> RefUnwindSafe for PresentEntry<'a, TKey, TVal>where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
impl<'a, TKey, TVal> Send for PresentEntry<'a, TKey, TVal>
impl<'a, TKey, TVal> Sync for PresentEntry<'a, TKey, TVal>
impl<'a, TKey, TVal> Unpin for PresentEntry<'a, TKey, TVal>
impl<'a, TKey, TVal> !UnwindSafe for PresentEntry<'a, TKey, TVal>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more