ObservableCacheSequenceEx
trait · ferroui-dynamic-data · v0.5.0
trait ObservableCacheSequenceEx<T: 'static>
The operators of ObservableCacheEx on a sequence of any values (ObservableCacheEx.FinallySafe,
ObservableCacheEx.MonitorStatus).
Their names are not those of operators of ferroui_reactive::ObservableExt, nor of the
operators of change sets, so the traits can all be in scope.
Members
observable_sequence
fn observable_sequence(self: &Self) -> Rc<dyn IObservable<T>>
The sequence as the handle the operators take.
finally_safe
fn finally_safe(self: &Self, finally_action: impl Fn() -> () + 'static) -> std::rc::Rc<dyn ferroui_system::IObservable<T>>
Runs finally_action once: after the completion or the error has been forwarded, or
when the subscription ends (FinallySafe(Action); obsolete upstream).
monitor_status
fn monitor_status(self: &Self) -> std::rc::Rc<dyn ferroui_system::IObservable<crate::kernel::ConnectionStatus>>
The status of the sequence: pending until its first value, then loaded, and completed or
errored at its end; the error is forwarded after the status (MonitorStatus).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.