pub struct ConfigManager { /* private fields */ }Expand description
Configuration manager handles loading and saving config
Implementations§
Source§impl ConfigManager
impl ConfigManager
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Create a new ConfigManager with the default config path
The config directory can be overridden by setting the RC_CONFIG_DIR
environment variable. This is useful for testing and containerized deployments.
Sourcepub fn with_path(path: PathBuf) -> Self
pub fn with_path(path: PathBuf) -> Self
Create a ConfigManager with a custom path (useful for testing)
Sourcepub fn config_path(&self) -> &PathBuf
pub fn config_path(&self) -> &PathBuf
Get the configuration file path
Trait Implementations§
Source§impl Debug for ConfigManager
impl Debug for ConfigManager
Auto Trait Implementations§
impl Freeze for ConfigManager
impl RefUnwindSafe for ConfigManager
impl Send for ConfigManager
impl Sync for ConfigManager
impl Unpin for ConfigManager
impl UnsafeUnpin for ConfigManager
impl UnwindSafe for ConfigManager
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