[][src]Struct spirit::cfg_loader::Loader

pub struct Loader { /* fields omitted */ }

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoResult<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.