pub struct ShardStats {
pub shard_id: usize,
pub size: usize,
pub hits: u64,
pub misses: u64,
}Expand description
Unstable: shard count is an internal implementation detail; this struct may be removed.
Per-shard statistics for detailed monitoring.
Fields§
§shard_id: usizeShard index (0 to NUM_SHARDS-1).
size: usizeCurrent number of entries in this shard.
hits: u64Number of cache hits in this shard.
misses: u64Number of cache misses in this shard.
Implementations§
Trait Implementations§
Source§impl Clone for ShardStats
impl Clone for ShardStats
Source§fn clone(&self) -> ShardStats
fn clone(&self) -> ShardStats
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 moreSource§impl Debug for ShardStats
impl Debug for ShardStats
impl Copy for ShardStats
Auto Trait Implementations§
impl Freeze for ShardStats
impl RefUnwindSafe for ShardStats
impl Send for ShardStats
impl Sync for ShardStats
impl Unpin for ShardStats
impl UnsafeUnpin for ShardStats
impl UnwindSafe for ShardStats
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