FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IObserverWithResult

    trait · ferroui-reactive · v0.5.0

    trait IObserverWithResult<T, R>
    

    An observer whose handlers return a result (IObserver<TValue, TResult>), which Notification::accept_observer_with_result returns.

    View source

    Members

    on_next

    fn on_next(self: &Self, value: T) -> R
    

    Handles a value (OnNext).

    Source

    on_error

    fn on_error(self: &Self, error: ObservableError) -> R
    

    Handles an error (OnError).

    Source

    on_completed

    fn on_completed(self: &Self) -> R
    

    Handles the end of the sequence (OnCompleted).

    Source

    Availability

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