SchedulerDefaults
struct · ferroui-reactive · v0.5.0
struct SchedulerDefaults
The schedulers that operators use when the caller names none (SchedulerDefaults).
Deviation (DEVIATIONS.md, Reactive): upstream runs time-based operators and asynchronous
conversions on the thread pool (DefaultScheduler). The port is single-threaded: those use the
default scheduler of the thread, which an application sets (the integration with FerroUI sets
the scheduler of the dispatcher of the user-interface thread) and which is the current-thread
scheduler until it does.
Members
constant_time_operationstail_recursioniterationtime_based_operationsasync_conversionsdefault_schedulerset_default_scheduler
constant_time_operations
fn constant_time_operations() -> Rc<dyn IScheduler>
Operators that take constant time (ConstantTimeOperations): the immediate scheduler.
tail_recursion
fn tail_recursion() -> Rc<dyn IScheduler>
Tail recursion (TailRecursion): the immediate scheduler.
iteration
fn iteration() -> Rc<dyn IScheduler>
Iteration (Iteration): the current-thread scheduler.
time_based_operations
fn time_based_operations() -> Rc<dyn IScheduler>
Time-based operations (TimeBasedOperations): the default scheduler of the thread.
async_conversions
fn async_conversions() -> Rc<dyn IScheduler>
Asynchronous conversions (AsyncConversions): the default scheduler of the thread.
default_scheduler
fn default_scheduler() -> Rc<dyn IScheduler>
The default scheduler of the thread (DefaultScheduler.Instance): the one set with
set_default_scheduler, else the current-thread scheduler.
set_default_scheduler
fn set_default_scheduler(scheduler: Option<Rc<dyn IScheduler>>)
Sets the default scheduler of the thread; None restores the current-thread scheduler.
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.