Struct libp2p::kad::kbucket::NodeRefView
source · pub struct NodeRefView<'a, TKey, TVal> {
pub key: &'a TKey,
pub value: &'a TVal,
}
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§
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