pub struct ProcessingFsCache<I>where
I: CacheInterface,{ /* private fields */ }Implementations§
Source§impl<I> ProcessingFsCache<I>
impl<I> ProcessingFsCache<I>
pub fn new( cache_save_threshold: u32, cache_path: PathBuf, interface: I, ) -> FsCacheResult<Self>
pub fn save(&self) -> FsCacheResult<()>
pub fn remove(&self, key: impl AsRef<Path>) -> FsCacheResult<()>
pub fn fetch(&self, key: impl Borrow<PathBuf>) -> FsCacheResult<I::T>
pub fn fetch_update( &self, key: impl Borrow<PathBuf>, ) -> FsCacheResult<Option<I::T>>
pub fn force_update(&self, key: impl Borrow<PathBuf>) -> FsCacheResult<I::T>
pub fn contains_key(&self, key: &Path) -> bool
pub fn keys(&self) -> Vec<PathBuf>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl<I> !Freeze for ProcessingFsCache<I>
impl<I> RefUnwindSafe for ProcessingFsCache<I>where
I: RefUnwindSafe,
impl<I> Send for ProcessingFsCache<I>where
I: Send,
impl<I> Sync for ProcessingFsCache<I>where
I: Sync,
impl<I> Unpin for ProcessingFsCache<I>
impl<I> UnwindSafe for ProcessingFsCache<I>where
I: UnwindSafe,
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