pub struct ConfigManager { /* private fields */ }Implementations§
Source§impl ConfigManager
impl ConfigManager
pub const fn location(&self) -> &Option<PathBuf>
pub const fn config(&self) -> &Config
pub fn with_location(location: Option<PathBuf>) -> Self
pub fn read(self) -> Result<Self, ConfyError>
pub fn write(self) -> Result<(), ConfyError>
pub fn update_config(self, config: Config) -> Self
Trait Implementations§
Source§impl Default for ConfigManager
impl Default for ConfigManager
Source§fn default() -> ConfigManager
fn default() -> ConfigManager
Returns the “default value” for a type. Read more
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