Skip to main content

ConfigLoader

Trait ConfigLoader 

Source
pub trait ConfigLoader: Send + Sync {
    // Required method
    fn load(&self) -> Result<ConfigLayer, ConfigError>;
}
Expand description

Loads a single config layer from some backing source.

Required Methods§

Source

fn load(&self) -> Result<ConfigLayer, ConfigError>

Reads the source and returns it as a config layer.

Implementors§