pub struct ContextRefresh {
pub rebuilt: usize,
pub reused: usize,
pub pruned: usize,
}Expand description
Counts from a refresh_contexts pass.
Fields§
§rebuilt: usizeCached entries that were rebuilt because their fingerprint had changed (the node or a neighbour changed).
reused: usizeCached entries that were still fresh and reused as-is.
pruned: usizeStale entries pruned because their node no longer exists.
Trait Implementations§
Source§impl Clone for ContextRefresh
impl Clone for ContextRefresh
Source§fn clone(&self) -> ContextRefresh
fn clone(&self) -> ContextRefresh
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextRefresh
Source§impl Debug for ContextRefresh
impl Debug for ContextRefresh
impl Eq for ContextRefresh
Source§impl PartialEq for ContextRefresh
impl PartialEq for ContextRefresh
Source§impl Serialize for ContextRefresh
impl Serialize for ContextRefresh
impl StructuralPartialEq for ContextRefresh
Auto Trait Implementations§
impl Freeze for ContextRefresh
impl RefUnwindSafe for ContextRefresh
impl Send for ContextRefresh
impl Sync for ContextRefresh
impl Unpin for ContextRefresh
impl UnsafeUnpin for ContextRefresh
impl UnwindSafe for ContextRefresh
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.