pub trait ConfigSource: Send + Sync {
// Required methods
fn load(&self) -> Result<PartialConfig, ConfigError>;
fn priority(&self) -> u8;
fn source_name(&self) -> &'static str;
// Provided method
fn watch_paths(&self) -> Vec<PathBuf> { ... }
}Expand description
Trait for configuration source.
Required Methods§
Sourcefn load(&self) -> Result<PartialConfig, ConfigError>
fn load(&self) -> Result<PartialConfig, ConfigError>
Load partial configuration.
Sourcefn source_name(&self) -> &'static str
fn source_name(&self) -> &'static str
Source name for debugging.
Provided Methods§
Sourcefn watch_paths(&self) -> Vec<PathBuf>
fn watch_paths(&self) -> Vec<PathBuf>
File system paths to watch for changes (only file-based sources need override).