pub struct ModuleCacheStats {
pub module_count: usize,
pub total_loads: usize,
pub cache_hits: usize,
pub cache_misses: usize,
pub hit_rate: f64,
}Expand description
模块缓存统计信息
Fields§
§module_count: usize当前缓存的模块数量
total_loads: usize总加载次数
cache_hits: usize缓存命中次数
cache_misses: usize缓存未命中次数
hit_rate: f64命中率
Trait Implementations§
Source§impl Clone for ModuleCacheStats
impl Clone for ModuleCacheStats
Source§fn clone(&self) -> ModuleCacheStats
fn clone(&self) -> ModuleCacheStats
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 moreAuto Trait Implementations§
impl Freeze for ModuleCacheStats
impl RefUnwindSafe for ModuleCacheStats
impl Send for ModuleCacheStats
impl Sync for ModuleCacheStats
impl Unpin for ModuleCacheStats
impl UnwindSafe for ModuleCacheStats
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