[][src]Trait abscissa::Configurable

pub trait Configurable<C: Config> {
    fn config_path(&self) -> Option<PathBuf> { ... }
fn load_config_file<P: AsRef<AbsPath>>(
        &self,
        path: &P
    ) -> Result<C, FrameworkError> { ... }
fn preprocess_config(&self, config: C) -> Result<C, 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 load_config_file<P: AsRef<AbsPath>>(
    &self,
    path: &P
) -> Result<C, FrameworkError>

Load the configuration for this command

fn preprocess_config(&self, config: C) -> Result<C, 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: Runnable + Command,
    Cfg: Config
[src]

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

Path to the command's configuration file

Loading content...