Trait abscissa_core::config::Config[][src]

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>; }

Trait for Abscissa configuration data structures.

Required methods

fn load_toml(toml_string: impl AsRef<str>) -> Result<Self, FrameworkError>[src]

Load the configuration from the given TOML string.

fn load_toml_file(path: impl AsRef<AbsPath>) -> Result<Self, FrameworkError>[src]

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.

Loading content...

Implementors

impl<C> Config for C where
    C: Debug + Default + DeserializeOwned
[src]

Loading content...