pub trait ConfigurationManagerConfig:
Value
+ Send
+ Sync {
// Required methods
fn get_name(&self) -> &str;
fn get_sources(&self) -> &Vec<Box<dyn ConfigurationSource>>;
fn get_task_executor(&self) -> &dyn Fn(&Box<dyn Fn()>);
fn clone_boxed(&self) -> Box<dyn ConfigurationManagerConfig>;
fn to_boxed(self) -> Box<dyn ConfigurationManagerConfig>;
}
Required Methods§
Sourcefn get_sources(&self) -> &Vec<Box<dyn ConfigurationSource>>
fn get_sources(&self) -> &Vec<Box<dyn ConfigurationSource>>
key for the source priority, value for the source
the greater the key is, the higher the priority is
non-null, non-empty
Sourcefn get_task_executor(&self) -> &dyn Fn(&Box<dyn Fn()>)
fn get_task_executor(&self) -> &dyn Fn(&Box<dyn Fn()>)
thread pool for property value update and property change listeners
by default, property value update and property change listeners will be done in the source change raising thread
if property count is too large, or the property change listeners are too slow, it’s better to use an async thread pool