Trait abscissa_core::Configurable
source · [−]pub trait Configurable<Cfg: Config> {
fn config_path(&self) -> Option<PathBuf> { ... }
fn process_config(&self, config: Cfg) -> Result<Cfg, FrameworkError> { ... }
}
Expand description
Command type with which a configuration file is associated
Provided methods
fn config_path(&self) -> Option<PathBuf>
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>
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