pub struct NodeCacheCounts {
pub hits: u64,
pub misses: u64,
pub last_tier: Option<String>,
}Expand description
One node’s share of CacheActivity.
Fields§
§hits: u64Hits recorded for this node.
misses: u64Misses recorded for this node.
last_tier: Option<String>Tier that served the most recent hit (memory, local, …).
Trait Implementations§
Source§impl Clone for NodeCacheCounts
impl Clone for NodeCacheCounts
Source§fn clone(&self) -> NodeCacheCounts
fn clone(&self) -> NodeCacheCounts
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 NodeCacheCounts
impl Debug for NodeCacheCounts
Source§impl Default for NodeCacheCounts
impl Default for NodeCacheCounts
Source§fn default() -> NodeCacheCounts
fn default() -> NodeCacheCounts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeCacheCounts
impl<'de> Deserialize<'de> for NodeCacheCounts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NodeCacheCounts
impl RefUnwindSafe for NodeCacheCounts
impl Send for NodeCacheCounts
impl Sync for NodeCacheCounts
impl Unpin for NodeCacheCounts
impl UnsafeUnpin for NodeCacheCounts
impl UnwindSafe for NodeCacheCounts
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