Enum libp2p::kad::kbucket::InsertResult [−][src]
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 for InsertResult<TKey> where
TKey: Clone,
[src]
TKey: Clone,
pub fn clone(&self) -> InsertResult<TKey>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<TKey> Debug for InsertResult<TKey> where
TKey: Debug,
[src]
TKey: Debug,
impl<TKey> Eq for InsertResult<TKey> where
TKey: Eq,
[src]
TKey: Eq,
impl<TKey> PartialEq<InsertResult<TKey>> for InsertResult<TKey> where
TKey: PartialEq<TKey>,
[src]
TKey: PartialEq<TKey>,
pub fn eq(&self, other: &InsertResult<TKey>) -> bool
[src]
pub 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,
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>,