FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(core: impl ObserverCore<T> + 'static) -> Self
    

    An observer of the handlers of core (a subclass of ObserverBase<T> upstream).

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • IObserver<T>
    • IDisposable

    Availability

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