# ResourceReloadTarget

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

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

```rust
struct ResourceReloadTarget
```

Replaces one explicitly owned merged dictionary, preserving its container,
direct application resources and all other merged dictionaries. Register
static-resource consumers with this document as a dependency so the session
prepares their replacements in the same revision. Dynamic-resource consumers
receive the resource provider's ordinary owner notifications.

The replaced provider itself is not a stable application object: applications
caching it or subscribing to it directly need an explicit refresh adapter.

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

## Members

- [`with_dependencies`](#function-with_dependencies)
- [`merged`](#function-merged)
- [`discover_merged`](#function-discover_merged)
- [`is_alive`](#function-is_alive)

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

### with_dependencies

```rust
fn with_dependencies(self: Self, dependencies: impl IntoIterator<Item = String>) -> Self
```

Declares resources/styles outside the document's inline includes, such as
application resources consumed through StaticResource. Their revisions are
prepared and committed in the same transaction as this target.

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

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

### merged

```rust
fn merged(container: &Ref<ResourceDictionary>, index: usize, uri: String, configuration: RuntimeXamlLoaderConfiguration) -> Result<Self, ReloadError>
```



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

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

### discover_merged

```rust
fn discover_merged(container: &Ref<ResourceDictionary>, configuration: RuntimeXamlLoaderConfiguration) -> Result<Vec<Self>, ReloadError>
```

Discovers direct merged include contributions without loading their source.
Keep the returned adapters alive and register their documents as dependencies
of static consumers. Nested includes are covered by source dependency traversal.

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

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

### is_alive

```rust
fn is_alive(self: &Self) -> bool
```



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

## 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/).
