Struct libp2p_kad::kbucket::Node [−][src]
pub struct Node<TKey, TVal> {
pub key: TKey,
pub value: TVal,
}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.
Trait Implementations
impl<TKey: Eq, TVal: Eq> Eq for Node<TKey, TVal>[src]
impl<TKey, TVal> StructuralEq for Node<TKey, TVal>[src]
impl<TKey, TVal> StructuralPartialEq for Node<TKey, TVal>[src]
Auto Trait Implementations
impl<TKey, TVal> RefUnwindSafe for Node<TKey, TVal> where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
impl<TKey, TVal> Send for Node<TKey, TVal> where
TKey: Send,
TVal: Send,
TKey: Send,
TVal: Send,
impl<TKey, TVal> Sync for Node<TKey, TVal> where
TKey: Sync,
TVal: Sync,
TKey: Sync,
TVal: Sync,
impl<TKey, TVal> Unpin for Node<TKey, TVal> where
TKey: Unpin,
TVal: Unpin,
TKey: Unpin,
TVal: Unpin,
impl<TKey, TVal> UnwindSafe for Node<TKey, TVal> where
TKey: UnwindSafe,
TVal: UnwindSafe,
TKey: UnwindSafe,
TVal: UnwindSafe,