FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ComponentRefresh

    trait · ferroui-hot-reload · v0.5.0

    trait ComponentRefresh
    

    Prepares application reference/subscription changes without mutating the live component. Commit runs after content and namescope replacement. Rollback runs after restoring the previous graph; finish runs only after every target commits. Retain old subscriptions until finish, dispose new subscriptions on rollback, and never rerun constructors. As with ReloadTarget, the application must provide reversible, non-panicking cleanup.

    View source

    Members

    prepare

    fn prepare(self: &Self, root: &Ref<StyledElement>, scope: Option<&NameScopeRef>) -> Result<Box<dyn PreparedReload>, ReloadError>
    

    Source

    Availability

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