# FerroPropertySignal

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui-controls/struct-ferropropertysignal/

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

```rust
struct FerroPropertySignal<T>
```

A property of a FerroUI object as a signal: an observer whose values `on_next` handles, and the
observable of the property (`FerroPropertySignal<T>`).

It counts its observers (`has_observers`); it is disposed by its
completion, by an error or by `dispose`, after which the values pushed
into it are dropped.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L162)

## Members

- [`new`](#function-new)
- [`is_disposed`](#function-is_disposed)
- [`has_observers`](#function-has_observers)

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

### new

```rust
fn new(on_next: impl Fn(T) -> () + 'static, observable: Rc<dyn IObservable<T>>) -> Rc<Self>
```

The signal that hands the values pushed into it to `on_next` and whose observers subscribe
to `observable` (`FerroPropertySignal<T>(Action<T>, IObservable<T>)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L181)

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

### is_disposed

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

Whether the signal has been disposed (`IsDisposed`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L186)

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

### has_observers

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

Whether observers are subscribed (`HasObservers`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/ferro_object_reactive_extensions.rs#L191)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`SubscribeGuard<T>`](/docs/0.5.0/api/ferroui-base/reactive/use-subscribeguard/)
- `ErasedDestructor`
- `IntoEither`
- [`ISubjectHandle<A, B>`](/docs/0.5.0/api/ferroui-reactive/subjects/trait-isubjecthandle/)
- [`ISubject<A, B>`](/docs/0.5.0/api/ferroui-reactive/subjects/trait-isubject/)
- `Debug`
- [`IObserver<T>`](/docs/0.5.0/api/ferroui-base/reactive/use-iobserver/)
- [`IObservable<T>`](/docs/0.5.0/api/ferroui-base/reactive/use-iobservable/)
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)

## Availability

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