#[non_exhaustive]pub struct CacheInfo {
pub current_size: usize,
pub max_size_per_cache: usize,
pub num_caches: usize,
pub ttl_config: Option<TtlConfig>,
pub metrics: CacheMetrics,
pub pending_flow_count: usize,
}Expand description
Statistics about template cache utilization.
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.current_size: usizeCurrent number of cached templates (summed across all internal caches).
This is the total across num_caches independent LRU caches. The theoretical
maximum is max_size_per_cache * num_caches, since each cache enforces
max_size_per_cache independently.
max_size_per_cache: usizeMaximum cache size per internal cache (each template type has its own LRU cache).
Each of the num_caches internal caches can hold up to this many templates
independently.
num_caches: usizeNumber of internal caches (V9 has 2: templates + options; IPFIX has 4)
ttl_config: Option<TtlConfig>TTL configuration (if enabled)
metrics: CacheMetricsPerformance metrics snapshot
pending_flow_count: usizeNumber of flows currently cached as pending (awaiting template)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheInfo
impl RefUnwindSafe for CacheInfo
impl Send for CacheInfo
impl Sync for CacheInfo
impl Unpin for CacheInfo
impl UnsafeUnpin for CacheInfo
impl UnwindSafe for CacheInfo
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