FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InstanceGenericFirstDependencyResolver

    struct · ferroui-splat · v0.5.0

    struct InstanceGenericFirstDependencyResolver
    

    A resolver whose registrations belong to the instance, kept per service type and contract (InstanceGenericFirstDependencyResolver). It is the resolver AppLocator starts with.

    A registration runs the callbacks of its service type and contract; disposing the resolver drops its registrations, disposes the constants and the created lazy singletons that were registered as disposable, and runs every callback once more.

    View source

    Members

    new

    fn new() -> Self
    

    An empty resolver.

    Source

    with_configuration

    fn with_configuration(configure: impl FnOnce(&dyn IMutableDependencyResolver) -> ()) -> Self
    

    A resolver that configure registers services with first (InstanceGenericFirstDependencyResolver(Action<IMutableDependencyResolver>?)).

    Source

    Trait implementations

    Availability

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