pub struct CacheDir { /* private fields */ }Expand description
Base directory for cached spack installs.
Implementations§
source§impl CacheDir
impl CacheDir
sourcepub async fn get_or_create() -> Result<Self, SummoningError>
pub async fn get_or_create() -> Result<Self, SummoningError>
Goes to ~/.spack/summonings.
Name intentionally chosen to be overridden later after upstreaming to spack (?).
pub fn location(&self) -> &Path
sourcepub fn dirname(&self) -> String
pub fn dirname(&self) -> String
We use the hex-encoded checksum value as the ultimate directory name.
sourcepub fn unpacking_path(&self) -> PathBuf
pub fn unpacking_path(&self) -> PathBuf
The path to unpack the tar archive into.
sourcepub fn tarball_path(&self) -> PathBuf
pub fn tarball_path(&self) -> PathBuf
The path to download the release tarball to.
sourcepub fn repo_root(&self) -> PathBuf
pub fn repo_root(&self) -> PathBuf
The path to the root of the spack repo, through a symlink.
FIXME: Note that this repeats the
PATCHES_TOPLEVEL_COMPONENT component
used in Self::unpacking_path.
sourcepub fn spack_script(&self) -> PathBuf
pub fn spack_script(&self) -> PathBuf
The path to the spack script in the spack repo, through a symlink.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CacheDir
impl Send for CacheDir
impl Sync for CacheDir
impl Unpin for CacheDir
impl UnwindSafe for CacheDir
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