# InpcPropertyAccessor

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/core/plugins/struct-inpcpropertyaccessor/

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

```rust
struct InpcPropertyAccessor
```

A property accessor over an [`IPropertyInfo`](/docs/0.5.0/api/ferroui-base/data/core/trait-ipropertyinfo/) that listens to the owner's
property change notifications.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/inpc_property_accessor_plugin.rs#L72)

## Members

- [`new`](#function-new)
- [`with_runtime_notifier`](#function-with_runtime_notifier)
- [`runtime_notifier`](#function-runtime_notifier)
- [`find_notifier`](#function-find_notifier)
- [`for_notifying`](#function-for_notifying)

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

### new

```rust
fn new(reference: WeakValue, property: Rc<dyn IPropertyInfo>, inpc: Option<InpcLookup>) -> Rc<dyn IPropertyAccessor>
```

Creates an accessor for `property` of the object behind
`reference`. `inpc` views the object as a property change notifier;
`None` for an object that raises no notifications.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/inpc_property_accessor_plugin.rs#L86)

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

### with_runtime_notifier

```rust
fn with_runtime_notifier(reference: WeakValue, property: Rc<dyn IPropertyInfo>) -> Rc<dyn IPropertyAccessor>
```

Creates an accessor for `property` of the object behind
`reference`, whose property change notifications are looked up at
run time: when the accessor subscribes, the object is asked (through
the metadata its type declared, see `ModelTypes`) whether it raises
property change notifications, as the cast to the notification
interface does in the managed original.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/inpc_property_accessor_plugin.rs#L100)

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

### runtime_notifier

```rust
fn runtime_notifier() -> InpcLookup
```

The run-time lookup of the property change notifications of an
object: through the metadata its type declared.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/inpc_property_accessor_plugin.rs#L106)

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

### find_notifier

```rust
fn find_notifier(value: &dyn AnyValue) -> Option<&dyn INotifyPropertyChanged>
```

The property change notifications of an object, if the metadata its
type declared says it raises them. This is the one place where the
accessors of the string-path bindings decide whether an owner
notifies.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/inpc_property_accessor_plugin.rs#L114)

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

### for_notifying

```rust
fn for_notifying<O: INotifyPropertyChanged + 'static>(reference: WeakValue, property: Rc<dyn IPropertyInfo>) -> Rc<dyn IPropertyAccessor>
```

Creates an accessor for a property of owner type `O`, which raises
property change notifications.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/plugins/inpc_property_accessor_plugin.rs#L151)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- [`IPropertyAccessor`](/docs/0.5.0/api/ferroui-base/data/core/plugins/trait-ipropertyaccessor/)
- `Drop`

## Availability

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