# StartupConfiguration

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui-controls/struct-startupconfiguration/

**struct** · [`ferroui-reactiveui-controls`](/docs/0.5.0/api/ferroui-reactiveui-controls/) · v0.5.0

```rust
struct StartupConfiguration
```

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

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/startup_configuration.rs#L15)

## Members

- [`configure_reactive_ui`](#function-configure_reactive_ui)
- [`configure_reactive_ui_di_container`](#function-configure_reactive_ui_di_container)

<a id="function-configure_reactive_ui"></a>

### configure_reactive_ui

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/startup_configuration.rs#L27)

<a id="function-configure_reactive_ui_di_container"></a>

### configure_reactive_ui_di_container

```rust
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](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/startup_configuration.rs#L46)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
