Struct libp2p_kad::kbucket::AppliedPending [−][src]
pub struct AppliedPending<TKey, TVal> {
pub inserted: Node<TKey, TVal>,
pub evicted: Option<Node<TKey, TVal>>,
}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: Clone, TVal: Clone> Clone for AppliedPending<TKey, TVal>[src]
impl<TKey: Clone, TVal: Clone> Clone for AppliedPending<TKey, TVal>[src]fn clone(&self) -> AppliedPending<TKey, TVal>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<TKey: Debug, TVal: Debug> Debug for AppliedPending<TKey, TVal>[src]
impl<TKey: Debug, TVal: Debug> Debug for AppliedPending<TKey, TVal>[src]impl<TKey: PartialEq, TVal: PartialEq> PartialEq<AppliedPending<TKey, TVal>> for AppliedPending<TKey, TVal>[src]
impl<TKey: PartialEq, TVal: PartialEq> PartialEq<AppliedPending<TKey, TVal>> for AppliedPending<TKey, TVal>[src]fn eq(&self, other: &AppliedPending<TKey, TVal>) -> bool[src]
fn ne(&self, other: &AppliedPending<TKey, TVal>) -> bool[src]
impl<TKey: Eq, TVal: Eq> Eq for AppliedPending<TKey, TVal>[src]
impl<TKey, TVal> StructuralEq for AppliedPending<TKey, TVal>[src]
impl<TKey, TVal> StructuralPartialEq for AppliedPending<TKey, TVal>[src]
Auto Trait Implementations
impl<TKey, TVal> RefUnwindSafe for AppliedPending<TKey, TVal> where
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
TKey: RefUnwindSafe,
TVal: RefUnwindSafe,
impl<TKey, TVal> Send for AppliedPending<TKey, TVal> where
TKey: Send,
TVal: Send,
TKey: Send,
TVal: Send,
impl<TKey, TVal> Sync for AppliedPending<TKey, TVal> where
TKey: Sync,
TVal: Sync,
TKey: Sync,
TVal: Sync,
impl<TKey, TVal> Unpin for AppliedPending<TKey, TVal> where
TKey: Unpin,
TVal: Unpin,
TKey: Unpin,
TVal: Unpin,
impl<TKey, TVal> UnwindSafe for AppliedPending<TKey, TVal> where
TKey: UnwindSafe,
TVal: UnwindSafe,
TKey: UnwindSafe,
TVal: UnwindSafe,