[−][src]Enum libp2p_kad::kbucket::InsertResult
The result of inserting an entry into a bucket.
Variants
The entry has been successfully inserted.
The entry is pending insertion because the relevant bucket is currently full. The entry is inserted after a timeout elapsed, if the status of the least-recently connected (and currently disconnected) node in the bucket is not updated before the timeout expires.
Fields of Pending
disconnected: TKey
The key of the least-recently connected entry that is currently considered
disconnected and whose corresponding peer should be checked for connectivity
in order to prevent it from being evicted. If connectivity to the peer is
re-established, the corresponding entry should be updated with
NodeStatus::Connected
.
The entry was not inserted because the relevant bucket is full.
Trait Implementations
impl<TKey: Clone> Clone for InsertResult<TKey>
[src]
fn clone(&self) -> InsertResult<TKey>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<TKey: Debug> Debug for InsertResult<TKey>
[src]
impl<TKey: Eq> Eq for InsertResult<TKey>
[src]
impl<TKey: PartialEq> PartialEq<InsertResult<TKey>> for InsertResult<TKey>
[src]
fn eq(&self, other: &InsertResult<TKey>) -> bool
[src]
fn ne(&self, other: &InsertResult<TKey>) -> bool
[src]
impl<TKey> StructuralEq for InsertResult<TKey>
[src]
impl<TKey> StructuralPartialEq for InsertResult<TKey>
[src]
Auto Trait Implementations
impl<TKey> RefUnwindSafe for InsertResult<TKey> where
TKey: RefUnwindSafe,
TKey: RefUnwindSafe,
impl<TKey> Send for InsertResult<TKey> where
TKey: Send,
TKey: Send,
impl<TKey> Sync for InsertResult<TKey> where
TKey: Sync,
TKey: Sync,
impl<TKey> Unpin for InsertResult<TKey> where
TKey: Unpin,
TKey: Unpin,
impl<TKey> UnwindSafe for InsertResult<TKey> where
TKey: UnwindSafe,
TKey: 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,
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
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.
fn to_owned(&self) -> T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,