ObserverBase
struct · ferroui-reactive · v0.5.0
struct ObserverBase<T>
An observer that enforces the grammar of the notifications on its core (ObserverBase<T>):
values reach the core until a terminal notification; the first terminal notification reaches
it, and every notification after it is ignored. Disposing the observer stops it the same way.
Members
new
fn new(core: impl ObserverCore<T> + 'static) -> Self
An observer of the handlers of core (a subclass of ObserverBase<T> upstream).
from_fns
fn from_fns(on_next_core: impl Fn(T) -> () + 'static, on_error_core: impl Fn(ObservableError) -> () + 'static, on_completed_core: impl Fn() -> () + 'static) -> Self
An observer whose handlers are the three functions.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyIObserver<T>IDisposable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.