# TransformAsyncOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/cache/struct-transformasyncoptions/

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

```rust
struct TransformAsyncOptions
```

The options of `TransformAsync` and `TransformSafeAsync` (`record struct
TransformAsyncOptions(int? MaximumConcurrency, bool TransformOnRefresh)`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/transform_async_options.rs#L6)

## Members

- [`maximum_concurrency`](#struct_field-maximum_concurrency)
- [`transform_on_refresh`](#struct_field-transform_on_refresh)
- [`DEFAULT`](#assoc_const-default)
- [`new`](#function-new)

<a id="struct_field-maximum_concurrency"></a>

### maximum_concurrency

```rust
maximum_concurrency: Option<usize>
```

The greatest number of transforms in flight at once; `None` for no limit
(`MaximumConcurrency`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/transform_async_options.rs#L9)

<a id="struct_field-transform_on_refresh"></a>

### transform_on_refresh

```rust
transform_on_refresh: bool
```

Whether a refresh transforms the item again (`TransformOnRefresh`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/transform_async_options.rs#L11)

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

### DEFAULT

```rust
const DEFAULT: TransformAsyncOptions
```

No limit of concurrency, and a refresh is forwarded without a new transform (`Default`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/transform_async_options.rs#L16)

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

### new

```rust
const fn new(maximum_concurrency: Option<usize>, transform_on_refresh: bool) -> Self
```

The options of `maximum_concurrency` and `transform_on_refresh`
(`TransformAsyncOptions(int?, bool)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/cache/transform_async_options.rs#L20)

## Trait implementations

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

## Availability

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