#[non_exhaustive]pub struct TwoQMetricsSnapshot {
pub get_calls: u64,
pub get_hits: u64,
pub get_misses: u64,
pub insert_calls: u64,
pub insert_updates: u64,
pub insert_new: u64,
pub evict_calls: u64,
pub evicted_entries: u64,
pub a1in_to_am_promotions: u64,
pub a1out_ghost_hits: u64,
pub cache_len: usize,
pub capacity: usize,
}Expand description
2Q (Two-Queue) cache metrics.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.get_calls: u64§get_hits: u64§get_misses: u64§insert_calls: u64§insert_updates: u64§insert_new: u64§evict_calls: u64§evicted_entries: u64§a1in_to_am_promotions: u64§a1out_ghost_hits: u64§cache_len: usize§capacity: usizeTrait Implementations§
Source§impl Clone for TwoQMetricsSnapshot
impl Clone for TwoQMetricsSnapshot
Source§fn clone(&self) -> TwoQMetricsSnapshot
fn clone(&self) -> TwoQMetricsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 TwoQMetricsSnapshot
impl Debug for TwoQMetricsSnapshot
Source§impl Default for TwoQMetricsSnapshot
impl Default for TwoQMetricsSnapshot
Source§fn default() -> TwoQMetricsSnapshot
fn default() -> TwoQMetricsSnapshot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TwoQMetricsSnapshot
impl<'de> Deserialize<'de> for TwoQMetricsSnapshot
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
Source§impl<W: Write + Send> MetricsExporter<TwoQMetricsSnapshot> for PrometheusTextExporter<W>
impl<W: Write + Send> MetricsExporter<TwoQMetricsSnapshot> for PrometheusTextExporter<W>
fn export(&self, snapshot: &TwoQMetricsSnapshot)
Source§impl<K, V> MetricsSnapshotProvider<TwoQMetricsSnapshot> for TwoQCore<K, V>
Available on crate feature metrics only.
impl<K, V> MetricsSnapshotProvider<TwoQMetricsSnapshot> for TwoQCore<K, V>
Available on crate feature
metrics only.fn snapshot(&self) -> TwoQMetricsSnapshot
Source§impl PartialEq for TwoQMetricsSnapshot
impl PartialEq for TwoQMetricsSnapshot
Source§impl Serialize for TwoQMetricsSnapshot
impl Serialize for TwoQMetricsSnapshot
impl Copy for TwoQMetricsSnapshot
impl Eq for TwoQMetricsSnapshot
impl StructuralPartialEq for TwoQMetricsSnapshot
Auto Trait Implementations§
impl Freeze for TwoQMetricsSnapshot
impl RefUnwindSafe for TwoQMetricsSnapshot
impl Send for TwoQMetricsSnapshot
impl Sync for TwoQMetricsSnapshot
impl Unpin for TwoQMetricsSnapshot
impl UnsafeUnpin for TwoQMetricsSnapshot
impl UnwindSafe for TwoQMetricsSnapshot
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