IReactiveProperty
trait · ferroui-reactiveui · v0.5.0
trait IReactiveProperty<T>: IObservable<T> + ICancelable + INotifyDataErrorInfo + INotifyPropertyChanged
A property that notifies the observers of its value and of its validation errors, and that
can be disposed (IReactiveProperty<T>).
Deviation (DEVIATIONS.md, ReactiveUI): upstream's IsDisposed interface of
ReactiveUI.Primitives is ICancelable, the disposable that says whether it was disposed.
Members
value
fn value(self: &Self) -> T
The value (Value { get; }).
set_value
fn set_value(self: &Self, value: T)
Sets the value (Value { set; }).
observe_error_changed
fn observe_error_changed(self: &Self) -> Rc<dyn IObservable<Option<DataErrors>>>
The errors of the property each time they change (ObserveErrorChanged); None when it
has none.
observe_has_errors
fn observe_has_errors(self: &Self) -> Rc<dyn IObservable<bool>>
Whether the property has validation errors, each time its errors change
(ObserveHasErrors).
refresh
fn refresh(self: &Self)
Notifies the current value again, even when it did not change (Refresh).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.