pub struct Config { /* private fields */ }Implementations§
Source§impl Config
impl Config
pub fn new() -> Result<Self>
pub fn from_path(dkdc_dir: PathBuf) -> Self
Sourcepub fn reload_config_file(&mut self)
pub fn reload_config_file(&mut self)
Reload configuration file from disk
Sourcepub fn file(&self) -> ConfigFile
pub fn file(&self) -> ConfigFile
Get the loaded config file (or default)
pub fn dkdc_dir(&self) -> &Path
pub fn lake_dir(&self) -> PathBuf
pub fn metadata_path(&self) -> PathBuf
pub fn data_path(&self) -> PathBuf
pub fn venv_path(&self) -> PathBuf
pub fn python_path(&self) -> PathBuf
pub fn config_file_path(&self) -> PathBuf
pub fn ensure_directories(&self) -> Result<()>
pub fn ensure_metadata_db(&self) -> Result<()>
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