Skip to main content

ObservableCacheSequenceEx

Trait ObservableCacheSequenceEx 

Source
pub trait ObservableCacheSequenceEx<T: 'static> {
    // Required method
    fn observable_sequence(&self) -> Rc<dyn IObservable<T>>;

    // Provided methods
    fn finally_safe(
        &self,
        finally_action: impl Fn() + 'static,
    ) -> Rc<dyn IObservable<T>> { ... }
    fn monitor_status(&self) -> Rc<dyn IObservable<ConnectionStatus>> { ... }
}
Expand description

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.

Required Methods§

Source

fn observable_sequence(&self) -> Rc<dyn IObservable<T>>

The sequence as the handle the operators take.

Provided Methods§

Source

fn finally_safe( &self, finally_action: impl Fn() + 'static, ) -> Rc<dyn IObservable<T>>

Runs finally_action once: after the completion or the error has been forwarded, or when the subscription ends (FinallySafe(Action); obsolete upstream).

Source

fn monitor_status(&self) -> Rc<dyn IObservable<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).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: 'static> ObservableCacheSequenceEx<T> for Rc<dyn IObservable<T>>

Implementors§