pub struct CoverageCache { /* private fields */ }Expand description
File-system cache for coverage data keyed by hash.
Implementations§
Source§impl CoverageCache
impl CoverageCache
pub fn new(dir: &Path, max_age_days: u32) -> Self
Sourcepub fn cache_key(
base_hash: &str,
head_hash: &str,
coverage_hash: &str,
) -> String
pub fn cache_key( base_hash: &str, head_hash: &str, coverage_hash: &str, ) -> String
Compute cache key from base hash, head hash, and coverage hash.
Sourcepub fn get(&self, key: &str) -> Result<Option<CachedResult>, CovyError>
pub fn get(&self, key: &str) -> Result<Option<CachedResult>, CovyError>
Try to load cached coverage data.
Auto Trait Implementations§
impl Freeze for CoverageCache
impl RefUnwindSafe for CoverageCache
impl Send for CoverageCache
impl Sync for CoverageCache
impl Unpin for CoverageCache
impl UnsafeUnpin for CoverageCache
impl UnwindSafe for CoverageCache
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