FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ferroui_reactive

    module · ferroui-reactive · v0.5.0

    module ferroui_reactive
    

    ferroui-reactive

    A port of Rx.NET's System.Reactive (https://github.com/dotnet/reactive) to Rust: observable sequences, their operators, the schedulers that decide when work runs, the disposables that end subscriptions, and subjects. It depends on nothing of the user interface of FerroUI; the interfaces it implements (IObservable<T>, IObserver<T>, IDisposable) are those of ferroui-system, which the framework uses too, so the sequences of this crate bind to the properties of controls as they are.

    The modules follow the namespaces of System.Reactive:

    • concurrency: System.Reactive.Concurrency (schedulers).
    • disposables: System.Reactive.Disposables.
    • subjects: System.Reactive.Subjects.
    • linq: System.Reactive.Linq (the operators: Observable and ObservableExt).
    • The root: Notification<T>, Unit, TimeInterval<T>, Timestamped<T>, the observers (Observer, AnonymousObserver<T>, ObserverBase<T>), ObservableBase<T>.

    Everything is single-threaded and reference counted, as the object model of FerroUI is: a sequence and its subscriptions live on the thread that created them, and the schedulers of the crate run their work on that thread (docs/porting/reactive.md, section 5.1).

    View source

    Contents

    Availability

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