Struct libp2p_kad::kbucket::PresentEntry
source · [−]pub struct PresentEntry<'a, TKey, TVal>(_);
Expand description
An entry present in a bucket.
Implementations
sourceimpl<'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(self, status: NodeStatus) -> Self
pub fn update(self, status: NodeStatus) -> Self
Sets the status of the entry to NodeStatus::Disconnected
.
Trait Implementations
Auto Trait Implementations
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> where
TKey: Send + Sync,
TVal: Send,
impl<'a, TKey, TVal> Sync for PresentEntry<'a, TKey, TVal> where
TKey: Sync,
TVal: Sync,
impl<'a, TKey, TVal> Unpin for PresentEntry<'a, TKey, TVal>
impl<'a, TKey, TVal> !UnwindSafe for PresentEntry<'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