FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ControlStateAdapter

    trait · ferroui-hot-reload · v0.5.0

    trait ControlStateAdapter
    

    Capture application-specific state from a control before replacement.

    Called only for controls with a source name or development key. Return None for unsupported controls. Capture must not mutate the live tree. Store values or application identities in the snapshot, not strong references to retired controls. One adapter can support multiple control types.

    View source

    Members

    capture

    fn capture(self: &Self, control: &Ref<StyledElement>) -> Option<Box<dyn CapturedControlState>>
    

    Source

    Availability

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