PanelReloadTarget
struct · ferroui-hot-reload · v0.5.0
struct PanelReloadTarget
Opt-in adapter for framework panels. Only owned children are replaced;
application children outside that range retain their identity and ordering.
The root namescope must belong to this XAML document. Application children
needing names must own separate namescopes. Root assignments and routed handlers
require explicit ownership opt-in; constructors are never rerun on the live root.
Members
with_dependenciesnewwith_refreshwith_owned_resourceswith_owned_styleswith_owned_handlerswith_state_adapterwith_owned_root_propertywith_owned_root_static_resource_propertyis_alivewith_owned_root_binding_property
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.
new
fn new(root: &Ref<Panel>, owned: Range<usize>, uri: String, baseline: String, configuration: RuntimeXamlLoaderConfiguration) -> Result<Self, ReloadError>
with_refresh
fn with_refresh(self: Self, refresh: Rc<dyn ComponentRefresh>) -> Self
with_owned_resources
fn with_owned_resources(self: Self) -> Self
Claims existing XAML Resources contributions; see ComponentReloadTarget.
with_owned_styles
fn with_owned_styles(self: Self) -> Self
Claims inline styles and Styles.Resources after initial XAML population.
with_owned_handlers
fn with_owned_handlers(self: Self) -> Result<Self, ReloadError>
Claims the document's routed XAML handlers. Call after population and before adding application children; the owned range must cover the document.
with_state_adapter
fn with_state_adapter(self: Self, adapter: Rc<dyn crate::ControlStateAdapter>) -> Self
Add application state transfer for uniquely identified controls in the panel's namescope. Application children must use separate scopes.
with_owned_root_property
fn with_owned_root_property<T: ferroui_base::PropertyValue>(self: Self, property: &'static ferroui_base::StyledProperty<T>) -> Self
Claims an initially populated literal root attribute for reversible reload. See ComponentReloadTarget::with_owned_root_property for the ownership contract.
with_owned_root_static_resource_property
fn with_owned_root_static_resource_property<T: ferroui_base::PropertyValue>(self: Self, property: &'static ferroui_base::StyledProperty<T>) -> Self
Claims a root literal or StaticResource assignment, including Theme/Template. Re-resolves the candidate value on dependency revisions even when the markup attribute is unchanged. Call immediately after initial population. Dynamic resources, bindings and application overrides require another adapter or restart. Property callbacks must support reversible assignment.
is_alive
fn is_alive(self: &Self) -> bool
with_owned_root_binding_property
fn with_owned_root_binding_property<T: ferroui_base::PropertyValue>(self: Self, property: &'static ferroui_base::StyledProperty<T>) -> Self
Claims a literal or synchronous root binding with the same ownership and context contract as ComponentReloadTarget::with_owned_root_binding_property.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherReloadTarget
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.