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: TKey

The key of the node, identifying the peer.

value: TVal

The associated value.

Trait Implementations

impl<TKey, TVal> Clone for Node<TKey, TVal> where
    TKey: Clone,
    TVal: Clone
[src]

impl<TKey, TVal> Debug for Node<TKey, TVal> where
    TKey: Debug,
    TVal: Debug
[src]

impl<TKey, TVal> Eq for Node<TKey, TVal> where
    TKey: Eq,
    TVal: Eq
[src]

impl<TKey, TVal> PartialEq<Node<TKey, TVal>> for Node<TKey, TVal> where
    TKey: PartialEq<TKey>,
    TVal: PartialEq<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

impl<TKey, TVal> Send for Node<TKey, TVal> where
    TKey: Send,
    TVal: Send

impl<TKey, TVal> Sync for Node<TKey, TVal> where
    TKey: Sync,
    TVal: Sync

impl<TKey, TVal> Unpin for Node<TKey, TVal> where
    TKey: Unpin,
    TVal: Unpin

impl<TKey, TVal> UnwindSafe for Node<TKey, TVal> where
    TKey: UnwindSafe,
    TVal: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]