FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AnonymousObserver

    struct · ferroui-reactive · v0.5.0

    struct AnonymousObserver<T>
    

    An observer made of functions (AnonymousObserver<T>). It ignores everything after a terminal notification. Without a function for errors, an error panics, as upstream rethrows it.

    View source

    Members

    new

    fn new(on_next: impl Fn(T) -> () + 'static, on_error: impl Fn(ObservableError) -> () + 'static, on_completed: impl Fn() -> () + 'static) -> Self
    

    An observer of 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>

    Availability

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