# ContentReloadTarget

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

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

```rust
struct ContentReloadTarget
```

Reloads a classless document inside a stable host. The host and its data context survive.
Custom `x:Class` roots need an application adapter that refreshes their cached references.

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

## Members

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

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

### new

```rust
fn new(host: &Ref<ContentControl>, uri: String, dependencies: Vec<String>, configuration: RuntimeXamlLoaderConfiguration) -> Self
```



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

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

### with_state_adapter

```rust
fn with_state_adapter(self: Self, adapter: Rc<dyn crate::ControlStateAdapter>) -> Self
```

Add application state transfer for uniquely identified, compatible controls.
Restoration runs after a successful revision, alongside built-in state transfer.

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

## 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`
- [`ReloadTarget`](/docs/0.5.0/api/ferroui-hot-reload/trait-reloadtarget/)

## Availability

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