Struct libp2p_kad::kbucket::Node [−][src]
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: Clone, TVal: Clone> Clone for Node<TKey, TVal>
[src]
impl<TKey: Debug, TVal: Debug> Debug for Node<TKey, TVal>
[src]
impl<TKey: Eq, TVal: Eq> Eq for Node<TKey, TVal>
[src]
impl<TKey: PartialEq, TVal: PartialEq> PartialEq<Node<TKey, TVal>> for Node<TKey, TVal>
[src]
fn eq(&self, other: &Node<TKey, TVal>) -> bool
[src]
fn ne(&self, other: &Node<TKey, TVal>) -> bool
[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,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,