# Flatten

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/task/struct-flatten/

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

```rust
struct Flatten<T>
```

A [`Shared`](/docs/0.5.0/api/ferroui-system/task/struct-shared/) of a `Result<T, ObservableError>` as a future of that result
(`Shared::flatten`): the futures that the asynchronous forms of the reactive libraries take
are futures of `Result<T, ObservableError>`, and an abort or a panic of the task is an error of
that result (`Shared::result`). Clones await the same outcome.

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

## Members

- [`into_shared`](#function-into_shared)
- [`shared`](#function-shared)

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

### into_shared

```rust
fn into_shared(self: Self) -> Shared<Result<T, ObservableError>>
```

The `Shared` it awaits.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/task/shared.rs#L249)

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

### shared

```rust
fn shared(self: &Self) -> &Shared<Result<T, ObservableError>>
```

The `Shared` it awaits.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/task/shared.rs#L254)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `IntoFuture`
- `ToOwned`
- `Clone`
- `Future`
- `Debug`

## Availability

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