Skip to main content

load_config_file

Function load_config_file 

Source
pub fn load_config_file(path: &Path) -> Result<OpiConfig, ConfigError>
Expand description

Load and parse a TOML config file. Returns defaults if the file doesn’t exist. Returns a clear error for malformed TOML.