# ControlStateRestoreContext

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-hot-reload/struct-controlstaterestorecontext/

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

```rust
struct ControlStateRestoreContext<'a>
```

Common admission checks for an application's state-restoration callback.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotReload/control_state.rs#L64)

## Members

- [`identity`](#function-identity)
- [`may_restore_property`](#function-may_restore_property)

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

### identity

```rust
fn identity(self: &Self) -> &[String]
```

Namescope-qualified identity within this document/component boundary.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotReload/control_state.rs#L74)

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

### may_restore_property

```rust
fn may_restore_property(self: &Self, property: &FerroProperty) -> bool
```

Rejects changed/removed authored values, markup expressions, existing
property values and local bindings (including direct-property bindings).
This is a necessary guard, not ownership inference for custom storage:
the adapter must also respect application values not represented by the
property system and coupled properties which a setter may update.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotReload/control_state.rs#L82)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

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