FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    value

    fn value(self: &Self) -> T
    

    The value (Value { get; }).

    Source

    set_value

    fn set_value(self: &Self, value: T)
    

    Sets the value (Value { set; }).

    Source

    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.

    Source

    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).

    Source

    refresh

    fn refresh(self: &Self)
    

    Notifies the current value again, even when it did not change (Refresh).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.