[][src]Trait abscissa_core::config::Configurable

pub trait Configurable<Cfg: Config> {
    fn config_path(&self) -> Option<PathBuf> { ... }
fn process_config(&self, config: Cfg) -> Result<Cfg, FrameworkError> { ... } }

Command type with which a configuration file is associated

Provided methods

fn config_path(&self) -> Option<PathBuf>

Path to the command's configuration file. Returns an error by default.

fn process_config(&self, config: Cfg) -> Result<Cfg, FrameworkError>

Process the configuration after it has been loaded, potentially modifying it or returning an error if options are incompatible

Loading content...

Implementors

impl<Cfg, Cmd> Configurable<Cfg> for EntryPoint<Cmd> where
    Cmd: Command + Configurable<Cfg> + Runnable,
    Cfg: Config
[src]

fn config_path(&self) -> Option<PathBuf>[src]

Path to the command's configuration file

fn process_config(&self, config: Cfg) -> Result<Cfg, FrameworkError>[src]

Process the configuration after it has been loaded, potentially modifying it or returning an error if options are incompatible

Loading content...