[][src]Struct libp2p::kad::kbucket::Node

pub struct Node<TPeerId, TVal> {
    pub key: Key<TPeerId>,
    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: Key<TPeerId>

The key of the node, identifying the peer.

value: TVal

The associated value.

Trait Implementations

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

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<TPeerId, TVal> PartialEq<Node<TPeerId, TVal>> for Node<TPeerId, TVal> where
    TPeerId: PartialEq<TPeerId>,
    TVal: PartialEq<TVal>, 
[src]

Auto Trait Implementations

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<T> Erased for T