# ReactiveNotificationHelpers

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/reactive_object/struct-reactivenotificationhelpers/

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

```rust
struct ReactiveNotificationHelpers
```

The notification state that the implementations of a reactive object share
(`ReactiveNotificationHelpers`): adding the handlers of the events, and the observables created
once and cached by the object. `ReactiveObject` uses them, and so can
an object that implements [`IReactiveObject`](/docs/0.5.0/api/ferroui-reactiveui/reactive_object/trait-ireactiveobject/) by hand.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/reactive_object/reactive_notification_helpers.rs#L17)

## Members

- [`add_property_changing`](#function-add_property_changing)
- [`add_property_changed`](#function-add_property_changed)
- [`get_changing`](#function-get_changing)
- [`get_changed`](#function-get_changed)
- [`get_thrown_exceptions`](#function-get_thrown_exceptions)

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

### add_property_changing

```rust
fn add_property_changing<T: IReactiveObject + ?Sized>(source: &T, subscribed: &Cell<bool>, handlers: &Event<str>, handler: Rc<dyn Fn(&str) -> ()>) -> u64
```

Adds a handler to the `PropertyChanging` event `handlers` of `source`, making its changes
raise the event the first time (`AddPropertyChanging`); returns the token that removes the
handler.

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

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

### add_property_changed

```rust
fn add_property_changed<T: IReactiveObject + ?Sized>(source: &T, subscribed: &Cell<bool>, handlers: &Event<str>, handler: Rc<dyn Fn(&str) -> ()>) -> u64
```

Adds a handler to the `PropertyChanged` event `handlers` of `source`, making its changes
raise the event the first time (`AddPropertyChanged`); returns the token that removes the
handler.

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

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

### get_changing

```rust
fn get_changing<T: IReactiveObject>(source: &Rc<T>, observable: &RefCell<Option<ChangeObservable<T>>>) -> ChangeObservable<T>
```

The `Changing` observable of `source`, created at the first call and kept in `observable`
(`GetChanging`).

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

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

### get_changed

```rust
fn get_changed<T: IReactiveObject>(source: &Rc<T>, observable: &RefCell<Option<ChangeObservable<T>>>) -> ChangeObservable<T>
```

The `Changed` observable of `source`, created at the first call and kept in `observable`
(`GetChanged`).

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

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

### get_thrown_exceptions

```rust
fn get_thrown_exceptions<T: IReactiveObject + ?Sized>(source: &T, observable: &RefCell<Option<Rc<dyn IObservable<ObservableError>>>>) -> Rc<dyn IObservable<ObservableError>>
```

The `ThrownExceptions` observable of `source`, created at the first call and kept in
`observable` (`GetThrownExceptions`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`

## Availability

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