pub struct Config {
pub data_dir: PathBuf,
pub installations_dir: PathBuf,
pub cache_dir: PathBuf,
pub git_cache_dir: PathBuf,
pub active_symlink: PathBuf,
pub bin_dir: PathBuf,
pub data_dir_format_version_file: PathBuf,
pub os: String,
pub arch: String,
}Fields§
§data_dir: PathBufRoot directory for gdenv data (installations, cache, symlinks, etc.)
installations_dir: PathBufDirectory where Godot installations are stored
cache_dir: PathBufDirectory for download cache
git_cache_dir: PathBufDirectory for git repository cache
active_symlink: PathBufPath to the active Godot symlink
bin_dir: PathBufDirectory for executable symlinks (to be added to PATH)
data_dir_format_version_file: PathBufPath to the gdenv version file (used to detect if migration is needed)
os: StringPlatform-specific operating system string.
arch: StringPlatform-specific architecture string.
Implementations§
Source§impl Config
impl Config
pub fn new_for_path(data_dir: &Path) -> Self
Sourcepub fn setup(data_dir: Option<&Path>) -> Result<Self>
pub fn setup(data_dir: Option<&Path>) -> Result<Self>
Sets up a new Config for the given data directory. See also Self::default_data_dir.
pub fn default_data_dir() -> PathBuf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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