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.
Members
changingchangedthrown_exceptionssubscribe_changingraise_changingsubscribe_changedraise_changednotifications_enabledsuppressare_change_notifications_delayeddelay
changing
fn changing(self: &Self) -> Rc<dyn IObservable<Rc<str>>>
The names of the properties that are about to change (Changing).
changed
fn changed(self: &Self) -> Rc<dyn IObservable<Rc<str>>>
The names of the properties that changed (Changed).
thrown_exceptions
fn thrown_exceptions(self: &Self) -> Rc<dyn IObservable<ObservableError>>
The errors of the subscribers of the changes (ThrownExceptions).
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.
raise_changing
fn raise_changing(self: &Self, property_name: &str)
Raises the changing notifications of property_name, unless they are suppressed
(RaiseChanging).
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.
raise_changed
fn raise_changed(self: &Self, property_name: &str)
Raises the changed notifications of property_name, unless they are suppressed
(RaiseChanged).
notifications_enabled
fn notifications_enabled(self: &Self) -> bool
Whether change notifications are sent (NotificationsEnabled).
suppress
fn suppress(self: &Self) -> Rc<dyn IDisposable>
Suppresses change notifications until the result is disposed (Suppress).
are_change_notifications_delayed
fn are_change_notifications_delayed(self: &Self) -> bool
Whether change notifications are delayed (AreChangeNotificationsDelayed).
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).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.