pub trait FallbackConfigReset: AnyConfig + Sync {
// Required methods
fn reset(&self, key: &ConfigKey);
fn can_reset(&self, key: ConfigKey) -> Var<bool>;
fn clone_boxed(&self) -> Box<dyn FallbackConfigReset>;
}Expand description
Reset controls of a FallbackConfig.
Required Methods§
Sourcefn reset(&self, key: &ConfigKey)
fn reset(&self, key: &ConfigKey)
Removes the key from the config source and reverts all active variables to the fallback source.
Sourcefn clone_boxed(&self) -> Box<dyn FallbackConfigReset>
fn clone_boxed(&self) -> Box<dyn FallbackConfigReset>
Clone a reference to the config.