Trait options::OptionsMonitor
source · pub trait OptionsMonitor<T> {
// Required methods
fn current_value(&self) -> &T;
fn get(&self, name: Option<&str>) -> &T;
fn on_change(&self, listener: Weak<dyn Fn(Option<&str>, &T)>);
}Expand description
Defines the behavior for notifications when option instances change.
Required Methods§
sourcefn current_value(&self) -> &T
fn current_value(&self) -> &T
Returns the current instance with the default options name.