FallbackConfigReset

Trait FallbackConfigReset 

Source
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§

Source

fn reset(&self, key: &ConfigKey)

Removes the key from the config source and reverts all active variables to the fallback source.

Source

fn can_reset(&self, key: ConfigKey) -> Var<bool>

Gets if the config source contains the key.

Source

fn clone_boxed(&self) -> Box<dyn FallbackConfigReset>

Clone a reference to the config.

Trait Implementations§

Source§

impl Clone for Box<dyn FallbackConfigReset>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§