# IExtensionState

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/reactive_object/trait-iextensionstate/

**trait** · [`ferroui-reactiveui`](/docs/0.5.0/api/ferroui-reactiveui/) · v0.5.0

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L14)

## Members

- [`changing`](#function-changing)
- [`changed`](#function-changed)
- [`thrown_exceptions`](#function-thrown_exceptions)
- [`subscribe_changing`](#function-subscribe_changing)
- [`raise_changing`](#function-raise_changing)
- [`subscribe_changed`](#function-subscribe_changed)
- [`raise_changed`](#function-raise_changed)
- [`notifications_enabled`](#function-notifications_enabled)
- [`suppress`](#function-suppress)
- [`are_change_notifications_delayed`](#function-are_change_notifications_delayed)
- [`delay`](#function-delay)

<a id="function-changing"></a>

### changing

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L16)

<a id="function-changed"></a>

### changed

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

The names of the properties that changed (`Changed`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L19)

<a id="function-thrown_exceptions"></a>

### thrown_exceptions

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L22)

<a id="function-subscribe_changing"></a>

### subscribe_changing

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L26)

<a id="function-raise_changing"></a>

### raise_changing

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L30)

<a id="function-subscribe_changed"></a>

### subscribe_changed

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L34)

<a id="function-raise_changed"></a>

### raise_changed

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L38)

<a id="function-notifications_enabled"></a>

### notifications_enabled

```rust
fn notifications_enabled(self: &Self) -> bool
```

Whether change notifications are sent (`NotificationsEnabled`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L41)

<a id="function-suppress"></a>

### suppress

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

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L44)

<a id="function-are_change_notifications_delayed"></a>

### are_change_notifications_delayed

```rust
fn are_change_notifications_delayed(self: &Self) -> bool
```

Whether change notifications are delayed (`AreChangeNotificationsDelayed`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L47)

<a id="function-delay"></a>

### delay

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/i_extension_state.rs#L51)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
