[][src]Trait scf_core::property::RawProperty

pub trait RawProperty: Value + Send + Sync {
    fn get_raw_config(&self) -> &dyn RawPropertyConfig;
fn get_raw_value(&self) -> Option<Box<dyn Value>>;
fn get_source(&self) -> Option<Box<dyn ConfigurationSource>>;
fn add_raw_change_listener(&self, listener: RawPropertyChangeListener);
fn clone_boxed(&self) -> Box<dyn RawProperty>;
fn to_boxed(self) -> Box<dyn RawProperty>;
fn as_trait_ref(&self) -> &dyn RawProperty;
fn as_trait_mut(&mut self) -> &mut dyn RawProperty; }

Required methods

fn get_raw_config(&self) -> &dyn RawPropertyConfig

fn get_raw_value(&self) -> Option<Box<dyn Value>>

property value, if not configured or no valid value, default to defaultValue Of PropertyConfig

fn get_source(&self) -> Option<Box<dyn ConfigurationSource>>

which configuration source is actually used return None if using default value

fn add_raw_change_listener(&self, listener: RawPropertyChangeListener)

listeners to the value change, notified once value changed

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

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

fn as_trait_ref(&self) -> &dyn RawProperty

fn as_trait_mut(&mut self) -> &mut dyn RawProperty

Loading content...

Implementors

impl RawProperty for DefaultRawProperty[src]

impl<K: ?Sized + KeyConstraint, V: ?Sized + ValueConstraint> RawProperty for DefaultProperty<K, V>[src]

Loading content...