Trait ConfigurationSource

Source
pub trait ConfigurationSource:
    Value
    + Send
    + Sync {
    // Required methods
    fn get_config(&self) -> &dyn ConfigurationSourceConfig;
    fn get_property_value(
        &self,
        config: &dyn RawPropertyConfig,
    ) -> Option<Box<dyn Value>>;
    fn add_change_listener(&self, listener: ConfigurationSourceChangeListener);
    fn clone_boxed(&self) -> Box<dyn ConfigurationSource>;
    fn to_boxed(self) -> Box<dyn ConfigurationSource>;
}

Required Methods§

Source

fn get_config(&self) -> &dyn ConfigurationSourceConfig

Source

fn get_property_value( &self, config: &dyn RawPropertyConfig, ) -> Option<Box<dyn Value>>

get property value acccording to the property config

if property is configured, the value is of type V or can be converted to type V by the converters a value of type V returned

otherwise, None returned

Source

fn add_change_listener(&self, listener: ConfigurationSourceChangeListener)

Source

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

Source

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

Trait Implementations§

Source§

impl Clone for Box<dyn ConfigurationSource>

Source§

fn clone(&self) -> Self

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

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

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Box<dyn ConfigurationSource>

Source§

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

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

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

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

Implementors§