FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SuspensionHostOfExtensions

    trait · ferroui-reactiveui · v0.5.0

    trait SuspensionHostOfExtensions<T: 'static>
    

    The typed state of a typed suspension host, and the default handling of its suspension with a typed driver (the extension members of ISuspensionHost<TAppState> in SuspensionHostExtensions), on its shared handle.

    View source

    Members

    get_app_state_typed

    fn get_app_state_typed(self: &Self) -> Option<Rc<T>>
    

    The state, loaded first when the setup armed a load and it has not run yet (GetAppState()).

    Source

    observe_app_state_typed

    fn observe_app_state_typed(self: &Self) -> Rc<dyn IObservable<Rc<T>>>
    

    The state: the current one on subscription when there is one, then each one set; None is skipped (ObserveAppState()).

    Source

    setup_default_suspend_resume_typed

    fn setup_default_suspend_resume_typed(self: &Self) -> Rc<dyn IDisposable>
    

    Sets up the default suspension and resumption with the typed driver registered in AppLocator as dyn ISuspensionDriverOf<T> (SetupDefaultSuspendResume(JsonTypeInfo<TAppState>)).

    Source

    setup_default_suspend_resume_typed_with

    fn setup_default_suspend_resume_typed_with(self: &Self, driver: Option<Rc<dyn ISuspensionDriverOf<T>>>) -> Rc<dyn IDisposable>
    

    Sets up the default suspension and resumption with driver, or the registered one when None (SetupDefaultSuspendResume(JsonTypeInfo<TAppState>, ISuspensionDriver?)); see SuspensionHostExtensions::setup_default_suspend_resume_with.

    Source

    Trait implementations

    Availability

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