pub struct FileCache<T> { /* private fields */ }Expand description
A bounded cache keyed by a file’s path and mtime.
A parsed message is expensive relative to everything else in a body request, and a maildir file never changes in place — a new message is a new file. Keying on mtime as well means the rare rewrite still invalidates.
Implementations§
Auto Trait Implementations§
impl<T> !Freeze for FileCache<T>
impl<T> RefUnwindSafe for FileCache<T>
impl<T> Send for FileCache<T>where
T: Send,
impl<T> Sync for FileCache<T>where
T: Send,
impl<T> Unpin for FileCache<T>where
T: Unpin,
impl<T> UnsafeUnpin for FileCache<T>
impl<T> UnwindSafe for FileCache<T>
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