pub struct ConfigManager;Implementations§
Source§impl ConfigManager
impl ConfigManager
Sourcepub fn unset_value(key: &str) -> Result<()>
pub fn unset_value(key: &str) -> Result<()>
Unset a key (restore to default)
Sourcepub fn get_all_as_toml() -> Result<String>
pub fn get_all_as_toml() -> Result<String>
Get all config as TOML string
Sourcepub fn get_config_path() -> Result<PathBuf>
pub fn get_config_path() -> Result<PathBuf>
Get config file path
Auto Trait Implementations§
impl Freeze for ConfigManager
impl RefUnwindSafe for ConfigManager
impl Send for ConfigManager
impl Sync for ConfigManager
impl Unpin 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