pub struct CachePaths {
pub metadata: PathBuf,
pub analysis: PathBuf,
}Expand description
The two files for one canonical root key in an application cache directory.
Fields§
§metadata: PathBufFilesystem entries and metadata.
analysis: PathBufDerived analyzer results.
Implementations§
Source§impl CachePaths
impl CachePaths
Sourcepub fn for_root_hash(directory: &Path, root_hash: u64) -> Self
pub fn for_root_hash(directory: &Path, root_hash: u64) -> Self
Construct the conventional sibling paths for a canonical root hash.
Sourcepub fn from_metadata(metadata: &Path) -> Self
pub fn from_metadata(metadata: &Path) -> Self
Derive the sibling of an explicit metadata path.
Trait Implementations§
Source§impl Clone for CachePaths
impl Clone for CachePaths
Source§impl Debug for CachePaths
impl Debug for CachePaths
impl Eq for CachePaths
Source§impl PartialEq for CachePaths
impl PartialEq for CachePaths
impl StructuralPartialEq for CachePaths
Auto Trait Implementations§
impl Freeze for CachePaths
impl RefUnwindSafe for CachePaths
impl Send for CachePaths
impl Sync for CachePaths
impl Unpin for CachePaths
impl UnsafeUnpin for CachePaths
impl UnwindSafe for CachePaths
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