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

pub trait Config: Debug + Default + DeserializeOwned {
    fn load_toml<T: AsRef<str>>(toml_string: T) -> Result<Self, FrameworkError> { ... }
fn load_toml_file<P>(path: &P) -> Result<Self, FrameworkError>
    where
        P: AsRef<AbsPath>
, { ... } }

Trait for Abscissa configuration data structures

Provided methods

fn load_toml<T: AsRef<str>>(toml_string: T) -> Result<Self, FrameworkError>

Load the configuration from the given TOML string

fn load_toml_file<P>(path: &P) -> Result<Self, FrameworkError> where
    P: AsRef<AbsPath>, 

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

Loading content...