# ObservableCore

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/trait-observablecore/

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

```rust
trait ObservableCore<T>
```

The subscription of an [`ObservableBase`](/docs/0.5.0/api/ferroui-reactive/struct-observablebase/) (the abstract member `SubscribeCore` of
`ObservableBase<T>`).

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

## Members

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

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

### subscribe_core

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

Subscribes `observer` and returns the disposable that ends the subscription
(`SubscribeCore`); an `Err` is the exception upstream's `SubscribeCore` throws, which is
delivered to the observer as its error.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/observable_base.rs#L18)

## Availability

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