FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Locator

    struct · ferroui-splat · v0.5.0

    struct Locator
    

    The service locator of Splat (Locator): AppLocator, whose resolver initializer registers the default services of Splat (initialize_splat) on every resolver set afterwards.

    Upstream sets the initializer in the static constructor of the class, the first time it is used; here the first call of any function of Locator on the thread sets it.

    View source

    Members

    current

    fn current() -> Rc<dyn IReadonlyDependencyResolver>
    

    Current.

    Source

    current_mutable

    fn current_mutable() -> Rc<dyn IMutableDependencyResolver>
    

    CurrentMutable.

    Source

    set_locator

    fn set_locator(dependency_resolver: Rc<dyn IDependencyResolver>)
    

    SetLocator.

    Source

    get_locator

    fn get_locator() -> Rc<dyn IDependencyResolver>
    

    GetLocator.

    Source

    register_resolver_callback_changed

    fn register_resolver_callback_changed(callback: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
    

    RegisterResolverCallbackChanged.

    Source

    suppress_resolver_callback_changed_notifications

    fn suppress_resolver_callback_changed_notifications() -> Rc<dyn IDisposable>
    

    SuppressResolverCallbackChangedNotifications.

    Source

    are_resolver_callback_changed_notifications_enabled

    fn are_resolver_callback_changed_notifications_enabled() -> bool
    

    AreResolverCallbackChangedNotificationsEnabled.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any

    Availability

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