# PropertyAccessorBase

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

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

```rust
struct PropertyAccessorBase
```

The listener bookkeeping shared by property accessors.

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

## Members

- [`new`](#function-new)
- [`is_subscribed`](#function-is_subscribed)
- [`set_listener`](#function-set_listener)
- [`clear_listener`](#function-clear_listener)
- [`publish_value`](#function-publish_value)

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

### new

```rust
fn new() -> Self
```



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

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

### is_subscribed

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



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

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

### set_listener

```rust
fn set_listener(self: &Self, listener: AccessorListener)
```

Stores the listener. Panics if already subscribed: a member accessor
can be subscribed to only once.

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

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

### clear_listener

```rust
fn clear_listener(self: &Self)
```

Clears the listener. Panics if not subscribed.

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

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

### publish_value

```rust
fn publish_value(self: &Self, value: Option<BoxedValue>)
```

Publishes a value to the listener.

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

## 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`
- `Default`

## Availability

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