# TaskStatus

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/threading/tasks/enum-taskstatus/

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

```rust
enum TaskStatus
```

The state of a task (`TaskStatus`).

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

> **Deprecated since 0.5.0.** a `ferroui_system::task::Shared` is finished or not (`is_finished`), and its outcome says how

## Members

- [`Created`](#variant-created)
- [`WaitingForActivation`](#variant-waitingforactivation)
- [`Running`](#variant-running)
- [`RanToCompletion`](#variant-rantocompletion)
- [`Faulted`](#variant-faulted)
- [`Canceled`](#variant-canceled)

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

### Created

```rust
Created
```

Made, and not started (`Created`).

> **Deprecated since 0.5.0.** a `ferroui_system::task::Shared` is finished or not (`is_finished`), and its outcome says how

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

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

### WaitingForActivation

```rust
WaitingForActivation
```

Waiting for its completion source or its future (`WaitingForActivation`).

> **Deprecated since 0.5.0.** a `ferroui_system::task::Shared` is finished or not (`is_finished`), and its outcome says how

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

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

### Running

```rust
Running
```

Its future is being polled (`Running`).

> **Deprecated since 0.5.0.** a `ferroui_system::task::Shared` is finished or not (`is_finished`), and its outcome says how

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

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

### RanToCompletion

```rust
RanToCompletion
```

Ended with a result (`RanToCompletion`).

> **Deprecated since 0.5.0.** a `ferroui_system::task::Shared` is finished or not (`is_finished`), and its outcome says how

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

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

### Faulted

```rust
Faulted
```

Ended with an error (`Faulted`).

> **Deprecated since 0.5.0.** a `ferroui_system::task::Shared` is finished or not (`is_finished`), and its outcome says how

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

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

### Canceled

```rust
Canceled
```

Ended by a cancellation (`Canceled`).

> **Deprecated since 0.5.0.** a `ferroui_system::task::Shared` is finished or not (`is_finished`), and its outcome says how

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`

## Availability

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