# IntoMarkupSubscription

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/metadata/trait-intomarkupsubscription/

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

```rust
trait IntoMarkupSubscription
```

What the subscription function of an event declaration may return: a
disposable that removes the handler, or nothing (`()`) for an event that
offers no way to remove a handler.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L769)

## Members

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

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

### into_markup_subscription

```rust
fn into_markup_subscription(self: Self) -> Option<Rc<dyn IDisposable>>
```

The subscription as a shared disposable, if there is one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/metadata/markup_type.rs#L771)

## Trait implementations

- [`IntoMarkupSubscription`](/docs/0.5.0/api/ferroui-base/metadata/trait-intomarkupsubscription/)

## Availability

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