Struct libp2p_kad::kbucket::NodeRefView
source · [−]Expand description
An immutable by-reference view of a Node
.
Fields
key: &'a TKey
value: &'a TVal
Auto Trait Implementations
impl<'a, TKey, TVal> RefUnwindSafe for NodeRefView<'a, TKey, TVal> where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
impl<'a, TKey, TVal> Send for NodeRefView<'a, TKey, TVal> where
TKey: Sync,
TVal: Sync,
impl<'a, TKey, TVal> Sync for NodeRefView<'a, TKey, TVal> where
TKey: Sync,
TVal: Sync,
impl<'a, TKey, TVal> Unpin for NodeRefView<'a, TKey, TVal>
impl<'a, TKey, TVal> UnwindSafe for NodeRefView<'a, TKey, TVal> where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
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