pub struct FsResultCache { /* private fields */ }Expand description
Directory-backed cache. Entries are JSON files named by the entry digest.
The layout is portable: copy the directory (or a single entry file) to another machine and the same triple hits.
Implementations§
Trait Implementations§
Source§impl Clone for FsResultCache
impl Clone for FsResultCache
Source§fn clone(&self) -> FsResultCache
fn clone(&self) -> FsResultCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FsResultCache
impl Debug for FsResultCache
Source§impl ResultCache for FsResultCache
impl ResultCache for FsResultCache
Source§fn get(
&self,
key: &CacheKey,
check_name: &str,
) -> Result<Option<ResultCacheEntry>, ResultCacheError>
fn get( &self, key: &CacheKey, check_name: &str, ) -> Result<Option<ResultCacheEntry>, ResultCacheError>
Load the entry for
key + check_name, if a valid one is stored.Source§fn put(&self, entry: &ResultCacheEntry) -> Result<(), ResultCacheError>
fn put(&self, entry: &ResultCacheEntry) -> Result<(), ResultCacheError>
Persist
entry under its recorded triple and check name.Auto Trait Implementations§
impl Freeze for FsResultCache
impl RefUnwindSafe for FsResultCache
impl Send for FsResultCache
impl Sync for FsResultCache
impl Unpin for FsResultCache
impl UnsafeUnpin for FsResultCache
impl UnwindSafe for FsResultCache
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