pub enum UpdateResult {
Updated,
UpdatedAndPromoted,
UpdatedPending,
Failed(FailureReason),
NotModified,
}
Expand description
The result of performing an update on a kbucket/table.
Variants§
Updated
The node was updated successfully,
UpdatedAndPromoted
The update promoted the node to a connected state from a disconnected state.
UpdatedPending
The pending entry was updated.
Failed(FailureReason)
The update removed the node because it would violate the incoming peers condition.
NotModified
There were no changes made to the value of the node.
Implementations§
Trait Implementations§
Source§impl Clone for UpdateResult
impl Clone for UpdateResult
Source§fn clone(&self) -> UpdateResult
fn clone(&self) -> UpdateResult
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UpdateResult
impl Debug for UpdateResult
Source§impl PartialEq for UpdateResult
impl PartialEq for UpdateResult
impl Eq for UpdateResult
impl StructuralPartialEq for UpdateResult
Auto Trait Implementations§
impl Freeze for UpdateResult
impl RefUnwindSafe for UpdateResult
impl Send for UpdateResult
impl Sync for UpdateResult
impl Unpin for UpdateResult
impl UnwindSafe for UpdateResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.