[−][src]Struct spirit::cfg_loader::Loader
The loader of configuration.
This is created by the Builder
. See the module documentation for
details.
Implementations
impl Loader
[src]
pub fn load<C: DeserializeOwned>(&mut self) -> Result<C, AnyError>
[src]
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 !RefUnwindSafe for Loader
impl Send for Loader
impl !Sync for Loader
impl Unpin for Loader
impl !UnwindSafe for Loader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,