pub struct FileStateCache { /* private fields */ }Expand description
A file state cache that normalizes all path keys before access. This ensures consistent cache hits regardless of whether callers pass relative vs absolute paths with redundant segments (e.g. /foo/../bar) or mixed path separators on Windows (/ vs ).
Implementations§
Source§impl FileStateCache
impl FileStateCache
Sourcepub fn new(max_entries: usize, max_size_bytes: usize) -> Self
pub fn new(max_entries: usize, max_size_bytes: usize) -> Self
Create a new FileStateCache with the given max entries and max size in bytes
Sourcepub fn max_entries(&self) -> Option<usize>
pub fn max_entries(&self) -> Option<usize>
Get the maximum number of entries
Auto Trait Implementations§
impl Freeze for FileStateCache
impl RefUnwindSafe for FileStateCache
impl Send for FileStateCache
impl Sync for FileStateCache
impl Unpin for FileStateCache
impl UnsafeUnpin for FileStateCache
impl UnwindSafe for FileStateCache
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