# JoinError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/task/enum-joinerror/

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

```rust
enum JoinError
```

Why a task ended without the output of its future.

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

## Members

- [`Canceled`](#variant-canceled)
- [`Panicked`](#variant-panicked)
- [`is_canceled`](#function-is_canceled)
- [`is_panic`](#function-is_panic)
- [`into_panic`](#function-into_panic)
- [`try_into_panic`](#function-try_into_panic)
- [`resume_unwind`](#function-resume_unwind)
- [`to_observable_error`](#function-to_observable_error)

<a id="variant-canceled"></a>

### Canceled

```rust
Canceled
```

The task was aborted (`JoinHandle::abort`): its future was dropped.

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

<a id="variant-panicked"></a>

### Panicked

```rust
Panicked(Box<dyn Any + Send>)
```

The future of the task panicked: the payload of the panic (for a `Shared` task, its
message as a `String`).

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

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

### is_canceled

```rust
fn is_canceled(self: &Self) -> bool
```

Whether the task was aborted.

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

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

### is_panic

```rust
fn is_panic(self: &Self) -> bool
```

Whether the future of the task panicked.

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

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

### into_panic

```rust
fn into_panic(self: Self) -> Box<dyn Any + Send>
```

The payload of the panic.
## Panics
When the task was aborted; `try_into_panic` does not.

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

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

### try_into_panic

```rust
fn try_into_panic(self: Self) -> Result<Box<dyn Any + Send>, JoinError>
```

The payload of the panic, or the error itself when the task was aborted.

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

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

### resume_unwind

```rust
fn resume_unwind(self: Self) -> never
```

Raises the panic of the task again on the calling thread, or panics with the error when
the task was aborted.

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

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

### to_observable_error

```rust
fn to_observable_error(self: &Self) -> ObservableError
```

The error in the error path of the reactive libraries (`ObservableError`): an abort is
`Canceled`, a panic a `TaskWorkError` with its message (the fault of a
task whose `async` method threw).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToString`
- `Debug`
- `Display`
- [`Error`](/docs/0.5.0/api/ferroui-dynamic-data/kernel/struct-error/)

## Availability

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