# IWatcher

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/experimental/trait-iwatcher/

**trait** · [`ferroui-dynamic-data`](/docs/0.5.0/api/ferroui-dynamic-data/) · v0.5.0

```rust
trait IWatcher<T, K>: IDisposable
```

A watcher of the changes of the items of a cache by key (`IWatcher<TObject, TKey>`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/experimental/i_watcher.rs#L8)

## Members

- [`watch`](#function-watch)

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

### watch

```rust
fn watch(self: &Self, key: K) -> Rc<dyn IObservable<Change<T, K>>>
```

The changes of the item of `key`, starting with its addition when it is in the cache
(`Watch(TKey)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/experimental/i_watcher.rs#L11)

## Availability

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