pub struct PrefixCacheStats {
pub cached_prefixes: usize,
pub prefix_hit_rate: f32,
pub avg_prefix_length: f32,
pub memory_saved_bytes: u64,
}Expand description
Prefix cache statistics
Fields§
§cached_prefixes: usizeNumber of cached prefixes
prefix_hit_rate: f32Prefix hit rate
avg_prefix_length: f32Average prefix length
memory_saved_bytes: u64Memory saved by prefix caching (bytes)
Trait Implementations§
Source§impl Clone for PrefixCacheStats
impl Clone for PrefixCacheStats
Source§fn clone(&self) -> PrefixCacheStats
fn clone(&self) -> PrefixCacheStats
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 PrefixCacheStats
impl Debug for PrefixCacheStats
Source§impl<'de> Deserialize<'de> for PrefixCacheStats
impl<'de> Deserialize<'de> for PrefixCacheStats
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 PrefixCacheStats
impl RefUnwindSafe for PrefixCacheStats
impl Send for PrefixCacheStats
impl Sync for PrefixCacheStats
impl Unpin for PrefixCacheStats
impl UnsafeUnpin for PrefixCacheStats
impl UnwindSafe for PrefixCacheStats
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