FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GlobalGenericFirstDependencyResolver

    struct · ferroui-splat · v0.5.0

    struct GlobalGenericFirstDependencyResolver
    

    A resolver whose registrations are global: every instance shares one set of containers, per service type and contract (GlobalGenericFirstDependencyResolver, after ReactiveMarbles' DefaultServiceLocator).

    Disposing an instance disposes the constants and lazy singletons it registered and ends its callbacks, but leaves the shared registrations in place; clear removes them.

    The registration callbacks of an instance run for a registration or a removal of any service type, as upstream's do.

    View source

    Members

    new

    fn new() -> Self
    

    A resolver over the global containers.

    Source

    with_configuration

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

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

    Source

    clear

    fn clear()
    

    Removes every global registration, of every instance (Clear).

    Source

    Trait implementations

    Availability

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