FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ResourceReloadTarget

    struct · ferroui-hot-reload · v0.5.0

    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

    Members

    with_dependencies

    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

    merged

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

    Source

    discover_merged

    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

    is_alive

    fn is_alive(self: &Self) -> bool
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • ReloadTarget

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.