Struct options::DefaultOptionsMonitor
source · pub struct DefaultOptionsMonitor<T> { /* private fields */ }Expand description
Represents the default implementation for notifications when option instances change.
Implementations§
source§impl<T: 'static> DefaultOptionsMonitor<T>
impl<T: 'static> DefaultOptionsMonitor<T>
sourcepub fn new(
cache: Rc<dyn OptionsMonitorCache<T>>,
sources: Vec<Rc<dyn OptionsChangeTokenSource<T>>>,
factory: Rc<dyn OptionsFactory<T>>
) -> Self
pub fn new( cache: Rc<dyn OptionsMonitorCache<T>>, sources: Vec<Rc<dyn OptionsChangeTokenSource<T>>>, factory: Rc<dyn OptionsFactory<T>> ) -> Self
Initializes a new default options monitor.
Arguments
cache- the cache used for monitored optionssources- the source tokens used to track option changesfactory- the factory used to create new options