pub struct DefaultRawProperty { /* private fields */ }Implementations§
Source§impl DefaultRawProperty
impl DefaultRawProperty
pub fn new(config: &dyn RawPropertyConfig) -> Self
pub fn update( &self, value: Option<Box<dyn Value>>, source: Option<Box<dyn ConfigurationSource>>, )
pub fn raise_change_event(&self, event: &dyn RawPropertyChangeEvent)
Trait Implementations§
Source§impl Clone for DefaultRawProperty
impl Clone for DefaultRawProperty
Source§fn clone(&self) -> DefaultRawProperty
fn clone(&self) -> DefaultRawProperty
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultRawProperty
impl Debug for DefaultRawProperty
Source§impl PartialEq for DefaultRawProperty
impl PartialEq for DefaultRawProperty
Source§impl RawProperty for DefaultRawProperty
impl RawProperty for DefaultRawProperty
fn get_raw_config(&self) -> &dyn RawPropertyConfig
Source§fn get_raw_value(&self) -> Option<Box<dyn Value>>
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 add_raw_change_listener(&self, listener: RawPropertyChangeListener)
fn add_raw_change_listener(&self, listener: RawPropertyChangeListener)
listeners to the value change, notified once value changed
Source§fn get_source(&self) -> Option<Box<dyn ConfigurationSource>>
fn get_source(&self) -> Option<Box<dyn ConfigurationSource>>
which configuration source is actually used
return None if using default value
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
impl Eq for DefaultRawProperty
impl Send for DefaultRawProperty
impl Sync for DefaultRawProperty
Auto Trait Implementations§
impl Freeze for DefaultRawProperty
impl !RefUnwindSafe for DefaultRawProperty
impl Unpin for DefaultRawProperty
impl !UnwindSafe for DefaultRawProperty
Blanket Implementations§
Source§impl<T> AnyExtension for Twhere
T: ?Sized,
impl<T> AnyExtension for Twhere
T: ?Sized,
Source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more