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.
Members
main_thread_schedulerset_main_thread_schedulertask_pool_schedulerset_task_pool_schedulersuppress_view_command_binding_messageset_suppress_view_command_binding_message
main_thread_scheduler
fn main_thread_scheduler() -> Rc<dyn IScheduler>
The scheduler of the user-interface thread (MainThreadScheduler).
set_main_thread_scheduler
fn set_main_thread_scheduler(scheduler: Rc<dyn IScheduler>)
Sets the scheduler of the user-interface thread (MainThreadScheduler { set; }).
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.
set_task_pool_scheduler
fn set_task_pool_scheduler(scheduler: Rc<dyn IScheduler>)
Sets the scheduler of background work (TaskpoolScheduler { set; }).
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).
set_suppress_view_command_binding_message
fn set_suppress_view_command_binding_message(value: bool)
Sets suppress_view_command_binding_message.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<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.