pub struct DefaultFileStatisticsCache { /* private fields */ }Expand description
Collected statistics for files Cache is invalided when file size or last modification has changed
Trait Implementations§
source§impl CacheAccessor<Path, Arc<Statistics>> for DefaultFileStatisticsCache
impl CacheAccessor<Path, Arc<Statistics>> for DefaultFileStatisticsCache
source§fn get_with_extra(&self, k: &Path, e: &Self::Extra) -> Option<Arc<Statistics>>
fn get_with_extra(&self, k: &Path, e: &Self::Extra) -> Option<Arc<Statistics>>
Get Statistics for file location. Returns None if file has changed or not found.
source§fn put(&self, _key: &Path, _value: Arc<Statistics>) -> Option<Arc<Statistics>>
fn put(&self, _key: &Path, _value: Arc<Statistics>) -> Option<Arc<Statistics>>
Save collected file statistics
type Extra = ObjectMeta
source§fn put_with_extra(
&self,
key: &Path,
value: Arc<Statistics>,
e: &Self::Extra
) -> Option<Arc<Statistics>>
fn put_with_extra( &self, key: &Path, value: Arc<Statistics>, e: &Self::Extra ) -> Option<Arc<Statistics>>
Put value into cache. Returns the old value associated with the key if there was one.
source§fn remove(&mut self, k: &Path) -> Option<Arc<Statistics>>
fn remove(&mut self, k: &Path) -> Option<Arc<Statistics>>
Remove an entry from the cache, returning value if they existed in the map.
source§fn contains_key(&self, k: &Path) -> bool
fn contains_key(&self, k: &Path) -> bool
Check if the cache contains a specific key.
source§impl Default for DefaultFileStatisticsCache
impl Default for DefaultFileStatisticsCache
source§fn default() -> DefaultFileStatisticsCache
fn default() -> DefaultFileStatisticsCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DefaultFileStatisticsCache
impl Send for DefaultFileStatisticsCache
impl Sync for DefaultFileStatisticsCache
impl Unpin for DefaultFileStatisticsCache
impl UnwindSafe for DefaultFileStatisticsCache
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