pub struct ResolvedPaths {
pub root: PathBuf,
pub packages: PathBuf,
pub data: PathBuf,
pub logs: PathBuf,
pub package_logs: PathBuf,
pub cache: PathBuf,
pub pkgdb: PathBuf,
pub shims: PathBuf,
pub db: PathBuf,
pub catalog_db: PathBuf,
pub config: PathBuf,
pub log: PathBuf,
}Expand description
Fully resolved path set for the active WinBrew root.
Fields§
§root: PathBufManaged root directory.
packages: PathBufInstall root for packages.
data: PathBufRoot data directory.
logs: PathBufProcess log directory.
package_logs: PathBufPackage-scoped log parent directory.
cache: PathBufDownload and staging cache directory.
pkgdb: PathBufRecovery journal parent directory.
shims: PathBufReserved package shim root.
db: PathBufPrimary SQLite database directory.
catalog_db: PathBufCatalog database path.
config: PathBufPersisted configuration file.
log: PathBufProcess log file.
Implementations§
Source§impl ResolvedPaths
impl ResolvedPaths
Sourcepub fn package_install_dir(&self, package_name: &str) -> PathBuf
pub fn package_install_dir(&self, package_name: &str) -> PathBuf
Return the install directory for a package name.
Sourcepub fn package_journal_dir(&self, package_key: &str) -> PathBuf
pub fn package_journal_dir(&self, package_key: &str) -> PathBuf
Return the journal directory for a package key.
Sourcepub fn package_journal_file(&self, package_key: &str) -> PathBuf
pub fn package_journal_file(&self, package_key: &str) -> PathBuf
Return the journal file for a package key.
Sourcepub fn package_log_dir(&self, package_key: &str) -> PathBuf
pub fn package_log_dir(&self, package_key: &str) -> PathBuf
Return the package-scoped log directory for a package key.
Sourcepub fn package_shim_dir(&self, package_key: &str) -> PathBuf
pub fn package_shim_dir(&self, package_key: &str) -> PathBuf
Return the reserved shim directory for a package key.
Trait Implementations§
Source§impl Clone for ResolvedPaths
impl Clone for ResolvedPaths
Source§fn clone(&self) -> ResolvedPaths
fn clone(&self) -> ResolvedPaths
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedPaths
impl RefUnwindSafe for ResolvedPaths
impl Send for ResolvedPaths
impl Sync for ResolvedPaths
impl Unpin for ResolvedPaths
impl UnwindSafe for ResolvedPaths
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