FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RxSchedulers

    struct · ferroui-reactiveui · v0.5.0

    struct RxSchedulers
    

    The schedulers that ReactiveUI's objects run their work on (RxSchedulers), settable for tests and by the integration with the user interface.

    Deviation (DEVIATIONS.md, ReactiveUI): the schedulers are per thread, as the observables are (docs/porting/reactive.md, section 5.1). Until one is set, both are the default scheduler of the thread (SchedulerDefaults::default_scheduler), the port of upstream's Scheduler.Default and TaskPoolScheduler.Default: the current-thread scheduler unless the application set another one. Unit tests therefore run on the current-thread scheduler unless a test sets one; the integration with FerroUI sets the scheduler of the dispatcher.

    View source

    Members

    main_thread_scheduler

    fn main_thread_scheduler() -> Rc<dyn IScheduler>
    

    The scheduler of the user-interface thread (MainThreadScheduler).

    Source

    set_main_thread_scheduler

    fn set_main_thread_scheduler(scheduler: Rc<dyn IScheduler>)
    

    Sets the scheduler of the user-interface thread (MainThreadScheduler { set; }).

    Source

    task_pool_scheduler

    fn task_pool_scheduler() -> Rc<dyn IScheduler>
    

    The scheduler of background work (TaskpoolScheduler).

    Deviation (DEVIATIONS.md, ReactiveUI): the work of the thread pool cannot run single-threaded observables, so this is a scheduler of the current thread unless one is set; work for another thread goes through ferroui_system::threading::tasks::run.

    Source

    set_task_pool_scheduler

    fn set_task_pool_scheduler(scheduler: Rc<dyn IScheduler>)
    

    Sets the scheduler of background work (TaskpoolScheduler { set; }).

    Source

    suppress_view_command_binding_message

    fn suppress_view_command_binding_message() -> bool
    

    Whether the bindings of commands skip the message they log when a view has no command of the name (SuppressViewCommandBindingMessage).

    Source

    set_suppress_view_command_binding_message

    fn set_suppress_view_command_binding_message(value: bool)
    

    Sets suppress_view_command_binding_message.

    Source

    Trait implementations

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

    Availability

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