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.
Members
create_new_app_state_typedset_create_new_app_state_typedapp_state_valueset_app_state_valueapp_state_value_changed
create_new_app_state_typed
fn create_new_app_state_typed(self: &Self) -> Option<TypedAppStateFactory<T>>
The function that creates a new state (CreateNewAppStateTyped).
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.
app_state_value
fn app_state_value(self: &Self) -> Option<Rc<T>>
The current state (AppStateValue).
set_app_state_value
fn set_app_state_value(self: &Self, value: Option<Rc<T>>)
Sets app_state_value.
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).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.