RawProperty

Trait RawProperty 

Source
pub trait RawProperty:
    Value
    + Send
    + Sync {
    // Required methods
    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§

Source

fn get_raw_config(&self) -> &dyn RawPropertyConfig

Source

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

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

Source

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

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

Source

fn add_raw_change_listener(&self, listener: RawPropertyChangeListener)

listeners to the value change, notified once value changed

Source

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

Source

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

Source

fn as_trait_ref(&self) -> &dyn RawProperty

Source

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

Trait Implementations§

Source§

impl Clone for Box<dyn RawProperty>

Source§

fn clone(&self) -> Self

Returns a duplicate 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 RawProperty>

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.

Implementors§