Struct libp2p::kad::kbucket::Node [−][src]
pub struct Node<TKey, TVal> {
pub key: TKey,
pub value: TVal,
pub weight: u32,
}Expand description
A Node in a bucket, representing a peer participating
in the Kademlia DHT together with an associated value (e.g. contact
information).
Fields
key: TKeyThe key of the node, identifying the peer.
value: TValThe associated value.
weight: u32Trait Implementations
Auto Trait Implementations
impl<TKey, TVal> RefUnwindSafe for Node<TKey, TVal> where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe, impl<TKey, TVal> UnwindSafe for Node<TKey, TVal> where
TKey: UnwindSafe,
TVal: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V