Struct libp2p_kad::kbucket::AppliedPending
source · [−]pub struct AppliedPending<TKey, TVal> {
pub inserted: Node<TKey, TVal>,
pub evicted: Option<Node<TKey, TVal>>,
}
Expand description
The result of applying a pending node to a bucket, possibly replacing an existing node.
Fields
inserted: Node<TKey, TVal>
The key of the inserted pending node.
evicted: Option<Node<TKey, TVal>>
The node that has been evicted from the bucket to make room for the pending node, if any.
Trait Implementations
impl<TKey: PartialEq, TVal: PartialEq> PartialEq<AppliedPending<TKey, TVal>> for AppliedPending<TKey, TVal>
impl<TKey: PartialEq, TVal: PartialEq> PartialEq<AppliedPending<TKey, TVal>> for AppliedPending<TKey, TVal>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<TKey, TVal> RefUnwindSafe for AppliedPending<TKey, TVal> where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
impl<TKey, TVal> Send for AppliedPending<TKey, TVal> where
TKey: Send,
TVal: Send,
impl<TKey, TVal> Sync for AppliedPending<TKey, TVal> where
TKey: Sync,
TVal: Sync,
impl<TKey, TVal> Unpin for AppliedPending<TKey, TVal> where
TKey: Unpin,
TVal: Unpin,
impl<TKey, TVal> UnwindSafe for AppliedPending<TKey, TVal> where
TKey: UnwindSafe,
TVal: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more