# Mode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/mode_detection/struct-mode/

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

```rust
struct Mode
```

A fixed mode (`Mode`): `RUN` outside a test runner, `TEST` under
one.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/mode_detection/mode.rs#L8)

## Members

- [`RUN`](#assoc_const-run)
- [`TEST`](#assoc_const-test)

<a id="assoc_const-run"></a>

### RUN

```rust
const RUN: Mode
```

The mode of an application (`Mode.Run`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/mode_detection/mode.rs#L14)

<a id="assoc_const-test"></a>

### TEST

```rust
const TEST: Mode
```

The mode of unit tests (`Mode.Test`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/mode_detection/mode.rs#L17)

## 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`
- [`IModeDetector`](/docs/0.5.0/api/ferroui-splat/mode_detection/trait-imodedetector/)

## Availability

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