FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ISuspensionHostOf

    trait · ferroui-reactiveui · v0.5.0

    trait ISuspensionHostOf<T: 'static>: ISuspensionHost
    

    A suspension host whose state of the application has the type T (ISuspensionHost<TAppState>).

    It keeps the observables of ISuspensionHost and adds the typed state; the untyped app_state of an implementation is a view of the typed one. The state is shared (Rc<T>), as the class of upstream is a reference.

    View source

    Members

    create_new_app_state_typed

    fn create_new_app_state_typed(self: &Self) -> Option<TypedAppStateFactory<T>>
    

    The function that creates a new state (CreateNewAppStateTyped).

    Source

    set_create_new_app_state_typed

    fn set_create_new_app_state_typed(self: &Self, value: Option<TypedAppStateFactory<T>>)
    

    Sets create_new_app_state_typed.

    Source

    app_state_value

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

    The current state (AppStateValue).

    Source

    set_app_state_value

    fn set_app_state_value(self: &Self, value: Option<Rc<T>>)
    

    Sets app_state_value.

    Source

    app_state_value_changed

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

    Ticks with the state each time app_state_value is set; it does not replay the current one (AppStateValueChanged).

    Source

    Trait implementations

    Availability

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