FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IExtensionState

    trait · ferroui-reactiveui · v0.5.0

    trait IExtensionState
    

    The state of the change notifications of a reactive object (IExtensionState<TSender>): the observables of its changes and errors, and the counts of suppression and delay.

    Deviation (DEVIATIONS.md, ReactiveUI): the state is not generic over the sender and its observables carry the names of the properties. A reactive object holds its state in its ReactiveObject, which cannot hold the shared handle of the object that holds it; the observables of a handle (IReactiveNotifyPropertyChanged) add the sender to each name.

    View source

    Members

    changing

    fn changing(self: &Self) -> Rc<dyn IObservable<Rc<str>>>
    

    The names of the properties that are about to change (Changing).

    Source

    changed

    fn changed(self: &Self) -> Rc<dyn IObservable<Rc<str>>>
    

    The names of the properties that changed (Changed).

    Source

    thrown_exceptions

    fn thrown_exceptions(self: &Self) -> Rc<dyn IObservable<ObservableError>>
    

    The errors of the subscribers of the changes (ThrownExceptions).

    Source

    subscribe_changing

    fn subscribe_changing(self: &Self)
    

    Makes the raising of a change raise the PropertyChanging event of the object (SubscribeChanging). The state does it by itself once the event has a handler.

    Source

    raise_changing

    fn raise_changing(self: &Self, property_name: &str)
    

    Raises the changing notifications of property_name, unless they are suppressed (RaiseChanging).

    Source

    subscribe_changed

    fn subscribe_changed(self: &Self)
    

    Makes the raising of a change raise the PropertyChanged event of the object (SubscribeChanged). The state does it by itself once the event has a handler.

    Source

    raise_changed

    fn raise_changed(self: &Self, property_name: &str)
    

    Raises the changed notifications of property_name, unless they are suppressed (RaiseChanged).

    Source

    notifications_enabled

    fn notifications_enabled(self: &Self) -> bool
    

    Whether change notifications are sent (NotificationsEnabled).

    Source

    suppress

    fn suppress(self: &Self) -> Rc<dyn IDisposable>
    

    Suppresses change notifications until the result is disposed (Suppress).

    Source

    are_change_notifications_delayed

    fn are_change_notifications_delayed(self: &Self) -> bool
    

    Whether change notifications are delayed (AreChangeNotificationsDelayed).

    Source

    delay

    fn delay(self: &Self) -> Rc<dyn IDisposable>
    

    Delays change notifications until the result is disposed, then sends the last one of each property (Delay).

    Source

    Availability

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