pub struct ModuleCacheManager { /* private fields */ }Expand description
模块缓存管理器
Implementations§
Source§impl ModuleCacheManager
impl ModuleCacheManager
Sourcepub fn cleanup_expired(&self)
pub fn cleanup_expired(&self)
清理过期条目
Sourcepub fn stats(&self) -> ModuleCacheStats
pub fn stats(&self) -> ModuleCacheStats
获取统计信息
Sourcepub fn cached_modules(&self) -> Vec<String>
pub fn cached_modules(&self) -> Vec<String>
获取缓存的模块 ID 列表
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ModuleCacheManager
impl RefUnwindSafe for ModuleCacheManager
impl !Send for ModuleCacheManager
impl !Sync for ModuleCacheManager
impl Unpin for ModuleCacheManager
impl UnwindSafe for ModuleCacheManager
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