pub struct Loader { /* private fields */ }Expand description
The loader of configuration.
This is created by the Builder. See the module documentation for
details.
Implementations§
Source§impl Loader
impl Loader
Sourcepub fn load<C: DeserializeOwned>(&mut self) -> Result<C, AnyError>
pub fn load<C: DeserializeOwned>(&mut self) -> Result<C, AnyError>
Loads configuration according to parameters configured on the originating Builder and on
the command line.
Note that it is possible to load the configuration multiple times during the lifetime of
the Loader. Each time all the sources are loaded from scratch (even new files in
directories are discovered), so this can be used to reflect configuration changes at
runtime.
Auto Trait Implementations§
impl Freeze for Loader
impl !RefUnwindSafe for Loader
impl Send for Loader
impl !Sync for Loader
impl Unpin for Loader
impl !UnwindSafe for Loader
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