Trait ConfigurationManagerConfig

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

Source

fn get_name(&self) -> &str

for description use

Source

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

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl Clone for Box<dyn ConfigurationManagerConfig>

Source§

fn clone(&self) -> Self

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

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

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Box<dyn ConfigurationManagerConfig>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for Box<dyn ConfigurationManagerConfig>

Implementors§