[][src]Trait scf_core::manager::ConfigurationManagerConfig

pub trait ConfigurationManagerConfig: Value + Send + Sync {
    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

fn get_name(&self) -> &str

for description use

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

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

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

fn to_boxed(self) -> Box<dyn ConfigurationManagerConfig>

Loading content...

Implementors

impl ConfigurationManagerConfig for DefaultConfigurationManagerConfig[src]

Loading content...