Trait abscissa_core::config::Config
source · [−]pub trait Config: Debug + Default + DeserializeOwned {
fn load_toml(toml_string: impl AsRef<str>) -> Result<Self, FrameworkError>;
fn load_toml_file(path: impl AsRef<AbsPath>) -> Result<Self, FrameworkError>;
}
Expand description
Trait for Abscissa configuration data structures.
Required methods
Load the configuration from the given TOML string.
fn load_toml_file(path: impl AsRef<AbsPath>) -> Result<Self, FrameworkError>
fn load_toml_file(path: impl AsRef<AbsPath>) -> Result<Self, FrameworkError>
Load the global configuration from the TOML file at the given path. If an error occurs reading or parsing the file, print it out and exit.