# IObservable

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/trait-iobservable/

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

```rust
trait IObservable<T>
```

A push-based source of values.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/i_observable.rs#L19)

## Members

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

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

### subscribe

```rust
fn subscribe(self: &Self, observer: Rc<dyn IObserver<T>>) -> Rc<dyn IDisposable>
```

Subscribes `observer`; disposing the returned handle unsubscribes it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/i_observable.rs#L21)

## Availability

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