pub struct FileInfoCache { /* private fields */ }Expand description
文件信息缓存
Implementations§
Source§impl FileInfoCache
impl FileInfoCache
pub fn new(max_cache_size: usize) -> Self
Sourcepub fn get_cache_stats(&self) -> CacheStats
pub fn get_cache_stats(&self) -> CacheStats
获取缓存统计信息
pub fn invalidate_file(&self, file_path: &str) -> Result<(), String>
pub fn clear(&self) -> Result<(), String>
pub fn get_statistics(&self) -> Result<CacheStatistics, String>
Trait Implementations§
Auto Trait Implementations§
impl Forget for FileInfoCache
impl Freeze for FileInfoCache
impl RefUnwindSafe for FileInfoCache
impl Send for FileInfoCache
impl Sync for FileInfoCache
impl Unpin for FileInfoCache
impl UnsafeUnpin for FileInfoCache
impl UnwindSafe for FileInfoCache
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