pub trait CacheClearableFilesystem: Filesystem {
// Required method
fn clear_cache<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A trait for filesystems that are able to clear their caches.
Required Methods§
Sourcefn clear_cache<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn clear_cache<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clears all cached data in the filesystem. This method is used in “cold” benchmarks to ensure that the filesystem isn’t using cached data from the setup phase in the benchmark phase.