# FerroTestIsolationAttribute

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-headless/struct-ferrotestisolationattribute/

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

```rust
struct FerroTestIsolationAttribute
```

Specifies how headless unit tests should be isolated from each other,
defining when the test runtime should recreate the application and
dispatcher instances.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless/headless_unit_test_isolation_attribute.rs#L36)

## Members

- [`new`](#function-new)
- [`isolation_level`](#function-isolation_level)

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

### new

```rust
const fn new(isolation_level: FerroTestIsolationLevel) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless/headless_unit_test_isolation_attribute.rs#L41)

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

### isolation_level

```rust
fn isolation_level(self: &Self) -> FerroTestIsolationLevel
```

Gets the isolation level for headless tests.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Headless/FerroUI.Headless/headless_unit_test_isolation_attribute.rs#L46)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `ErasedDestructor`
- `IntoEither`

## Availability

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