pub trait ConfigProvider {
type Config;
type Error: Error + Send + Sync + 'static;
// Required methods
fn load(&self) -> Result<Self::Config>;
fn save(&self, config: &Self::Config) -> Result<()>;
fn validate(&self, config: &Self::Config) -> Result<()>;
fn default_config(&self) -> Self::Config;
}Expand description
Configuration management abstraction
§Synchronous Version
This trait provides synchronous operations for configuration management.
Required Associated Types§
Required Methods§
Sourcefn default_config(&self) -> Self::Config
fn default_config(&self) -> Self::Config
Get default configuration