# FerroPropertySubscription

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

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

```rust
struct FerroPropertySubscription
```

The object and the handler a property observation detaches when it is disposed
(`FerroPropertySubscription`): disposing it removes the property-changed handler from the
object; only the first call does anything.

Deviation (DEVIATIONS.md, ReactiveUI controls): upstream's record of the sender and the handler
is disposed by a `Scope`; here the record is the disposable, and the handler is its token.

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

## Members

- [`new`](#function-new)
- [`sender`](#function-sender)

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

### new

```rust
fn new(sender: Ref<FerroObject>, token: u64) -> Self
```

The subscription of the property-changed handler `token` of `sender`.

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

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

### sender

```rust
fn sender(self: &Self) -> &Ref<FerroObject>
```

The observed object (`Sender`).

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

## 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/)
- `ErasedDestructor`
- `IntoEither`
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- `Debug`

## Availability

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