pub trait ConfigResolver: Send + Sync {
// Required method
fn resolve(&self) -> Result<OrcsConfig, ConfigError>;
}Expand description
Trait for resolving configuration from all sources.
Each invocation of resolve() returns a fresh, fully-merged
OrcsConfig. This allows the application to re-resolve at any
time (e.g., after a config file edit) without restarting.
Required Methods§
Sourcefn resolve(&self) -> Result<OrcsConfig, ConfigError>
fn resolve(&self) -> Result<OrcsConfig, ConfigError>
Resolves and returns the current configuration.
Implementations should merge all layers (file, env, flags) and return the final result.