# Diagnostic

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/diagnostics/enum-diagnostic/

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

```rust
enum Diagnostic
```

A warning of the declarative API.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/diagnostics.rs#L15)

## Members

- [`MissingKeys`](#variant-missingkeys)
- [`DuplicateKey`](#variant-duplicatekey)
- [`RunawayComponent`](#variant-runawaycomponent)
- [`NeedsRebuild`](#variant-needsrebuild)
- [`HotReloaded`](#variant-hotreloaded)
- [`ErrorCaught`](#variant-errorcaught)

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

### MissingKeys

```rust
MissingKeys { items: usize, first: String }
```

A list of elements (`for` in `rsx!`, a `Vec`) whose items have no
keys: an item that moves or is removed makes the items after it patch
one another's controls instead of keeping their own.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/diagnostics.rs#L19)

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

### DuplicateKey

```rust
DuplicateKey { key: crate::element::Key }
```

Two siblings with the same key: the second does not keep its
control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/diagnostics.rs#L27)

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

### RunawayComponent

```rust
RunawayComponent { name: &'static str, runs: u32 }
```

A component that ran again more times than `RUNAWAY_RUNS` in one
propagation of changes: a run that writes a signal it reads.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/diagnostics.rs#L33)

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

### NeedsRebuild

```rust
NeedsRebuild { file: String, line: u32 }
```

The source of an `rsx!` changed more than its literals: hot reload
applies literals only, the rest needs a rebuild.

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

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

### HotReloaded

```rust
HotReloaded { file: String, literals: usize }
```

Hot reload applied changed literals of a file.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/diagnostics.rs#L48)

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

### ErrorCaught

```rust
ErrorCaught { component: &'static str, message: String }
```

A run of a component below an error boundary panicked: the nearest
boundary shows its fallback (see `error_boundary`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/diagnostics.rs#L56)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`IntoValue<T>`](/docs/0.5.0/api/ferroui-view/builder/trait-intovalue/)
- [`IntoValue<Option<T>>`](/docs/0.5.0/api/ferroui-view/builder/trait-intovalue/)
- [`FromValue<T>`](/docs/0.5.0/api/ferroui-view/builder/trait-fromvalue/)
- [`FromValue<Option<T>>`](/docs/0.5.0/api/ferroui-view/builder/trait-fromvalue/)
- [`IntoProp<T, Value>`](/docs/0.5.0/api/ferroui-view/builder/trait-intoprop/)
- [`AnyValueEq`](/docs/0.5.0/api/ferroui-view/element/trait-anyvalueeq/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- [`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/)
- `ErasedDestructor`
- `IntoEither`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Display`

## Availability

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