[][src]Struct libp2p_kad::kbucket::EntryView

pub struct EntryView<TKey, TVal> {
    pub node: Node<TKey, TVal>,
    pub status: NodeStatus,
}

A cloned, immutable view of an entry that is either present in a bucket or pending insertion.

Fields

node: Node<TKey, TVal>

The node represented by the entry.

status: NodeStatus

The status of the node.

Trait Implementations

impl<TKey: AsRef<KeyBytes>, TVal> AsRef<KeyBytes> for EntryView<TKey, TVal>[src]

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

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

impl From<EntryView<Key<PeerId>, Addresses>> for KadPeer[src]

Auto Trait Implementations

impl<TKey, TVal> RefUnwindSafe for EntryView<TKey, TVal> where
    TKey: RefUnwindSafe,
    TVal: RefUnwindSafe

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

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

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

impl<TKey, TVal> UnwindSafe for EntryView<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

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>,