IPropertyAccessor
trait · ferroui-base · v0.5.0
trait IPropertyAccessor: IDisposable
Defines an accessor to a property on an object returned by an
IPropertyAccessorPlugin.
Members
property_type
fn property_type(self: &Self) -> Option<ValueType>
The type of the property, or None if the accessor is in an error
state.
value
fn value(self: &Self) -> Option<BoxedValue>
The current value of the property.
set_value
fn set_value(self: &Self, value: Option<&BoxedValue>, priority: BindingPriority) -> Result<bool, BindingError>
Sets the property value. Returns Ok(false) if the property cannot be
written; an Err is the equivalent of the setter throwing.
subscribe
fn subscribe(self: &Self, listener: AccessorListener)
Subscribes to the value of the member. The listener is invoked with the current value and with each new value.
unsubscribe
fn unsubscribe(self: &Self)
Stops the subscription.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.