Skip to main content

ConfigStore

Trait ConfigStore 

Source
pub trait ConfigStore: Send + Sync {
    // Required methods
    fn load(&self) -> Result<Config>;
    fn save(&self, c: &Config) -> Result<()>;
}
Expand description

Loads/merges config from defaults → config.toml → env (SPARROW_*) → CLI flags.

Required Methods§

Source

fn load(&self) -> Result<Config>

Source

fn save(&self, c: &Config) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§