pub struct ConfigLoader { /* private fields */ }Expand description
Configuration loader
Implementations§
Source§impl ConfigLoader
impl ConfigLoader
Sourcepub fn with_dir<P: AsRef<Path>>(dir: P) -> Self
pub fn with_dir<P: AsRef<Path>>(dir: P) -> Self
Create a new config loader with a custom config directory
Sourcepub fn with_file<P: AsRef<Path>>(path: P) -> Self
pub fn with_file<P: AsRef<Path>>(path: P) -> Self
Create a new config loader with an explicit config file path
Sourcepub fn config_dir(&self) -> &Path
pub fn config_dir(&self) -> &Path
Get the config directory path
Sourcepub fn config_path(&self) -> &Path
pub fn config_path(&self) -> &Path
Get the config file path
Trait Implementations§
Source§impl Clone for ConfigLoader
impl Clone for ConfigLoader
Source§fn clone(&self) -> ConfigLoader
fn clone(&self) -> ConfigLoader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConfigLoader
impl RefUnwindSafe for ConfigLoader
impl Send for ConfigLoader
impl Sync for ConfigLoader
impl Unpin for ConfigLoader
impl UnsafeUnpin for ConfigLoader
impl UnwindSafe for ConfigLoader
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