Struct libp2p_kad::kbucket::Node
source · [−]pub struct Node<TKey, TVal> {
pub key: TKey,
pub value: TVal,
}
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: TKey
The key of the node, identifying the peer.
value: TVal
The associated value.
Trait 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