FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CombineLatestSink

    struct · ferroui-reactiveui · v0.5.0

    struct CombineLatestSink
    

    The latest values of two sources, combined (CombineLatestSink<TFirst, TSecond>): once both have produced a value, on_next receives the latest pair at each change; an error of either goes to on_error, and their ends are ignored.

    View source

    Members

    new

    fn new<A: Clone + 'static, B: Clone + 'static>(first: Rc<dyn IObservable<A>>, second: Rc<dyn IObservable<B>>, on_next: impl Fn(A, B) -> () + 'static, on_error: Option<Rc<dyn Fn(ObservableError) -> ()>>) -> Self
    

    Subscribes first and second (CombineLatestSink(IObservable<TFirst>, IObservable<TSecond>, Action<TFirst, TSecond>, Action<Exception>?)).

    Source

    Trait implementations

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

    Availability

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