pub struct GhostCacheStats {
pub total_nodes: usize,
pub max_capacity: usize,
pub nodes_by_shard: HashMap<ShardId, usize>,
pub nodes_with_full_data: usize,
}Expand description
Statistics about the ghost node cache.
Fields§
§total_nodes: usizeTotal number of cached ghost nodes.
max_capacity: usizeMaximum capacity of the cache.
nodes_by_shard: HashMap<ShardId, usize>Number of nodes cached from each shard.
nodes_with_full_data: usizeNumber of nodes that have full data fetched.
Trait Implementations§
Source§impl Clone for GhostCacheStats
impl Clone for GhostCacheStats
Source§fn clone(&self) -> GhostCacheStats
fn clone(&self) -> GhostCacheStats
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 moreAuto Trait Implementations§
impl Freeze for GhostCacheStats
impl RefUnwindSafe for GhostCacheStats
impl Send for GhostCacheStats
impl Sync for GhostCacheStats
impl Unpin for GhostCacheStats
impl UnsafeUnpin for GhostCacheStats
impl UnwindSafe for GhostCacheStats
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