FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StartupConfiguration

    struct · ferroui-reactiveui-controls · v0.5.0

    struct StartupConfiguration
    

    Builds ReactiveUI once the platform services of the application are ready (StartupConfiguration).

    View source

    Members

    configure_reactive_ui

    fn configure_reactive_ui(configure_reactive_ui: &dyn Fn(&ReactiveUIBuilder) -> ())
    

    Configures and builds ReactiveUI after the platform services are ready (ConfigureReactiveUI): a builder with the services of FerroUI (with_ferro), then the application's configuration, then the build, unless an application was built already.

    The code of the user interface thread that runs outside of a dispatcher job continues at Normal unless it has a priority (Dispatcher::set_current_priority), where the reference installs the synchronization context of the dispatcher; the dispatcher is the schedule of its thread already.

    Source

    configure_reactive_ui_di_container

    fn configure_reactive_ui_di_container<C: 'static>(resolver: Option<Rc<dyn IMutableDependencyResolver>>, container_factory: &dyn Fn() -> Rc<C>, container_config: &dyn Fn(&Rc<C>) -> (), dependency_resolver_factory: &dyn Fn(&Rc<C>) -> Rc<dyn IDependencyResolver>)
    

    Configures ReactiveUI with a dependency injection container when a mutable resolver is available (ConfigureReactiveUIDIContainer): the container is created, registered as a constant, its resolver becomes the one of the locator, the scheduler of the user interface thread becomes the main thread scheduler, and the container is configured.

    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

    Availability

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