FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    constant_time_operations

    fn constant_time_operations() -> Rc<dyn IScheduler>
    

    Operators that take constant time (ConstantTimeOperations): the immediate scheduler.

    Source

    tail_recursion

    fn tail_recursion() -> Rc<dyn IScheduler>
    

    Tail recursion (TailRecursion): the immediate scheduler.

    Source

    iteration

    fn iteration() -> Rc<dyn IScheduler>
    

    Iteration (Iteration): the current-thread scheduler.

    Source

    time_based_operations

    fn time_based_operations() -> Rc<dyn IScheduler>
    

    Time-based operations (TimeBasedOperations): the default scheduler of the thread.

    Source

    async_conversions

    fn async_conversions() -> Rc<dyn IScheduler>
    

    Asynchronous conversions (AsyncConversions): the default scheduler of the thread.

    Source

    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.

    Source

    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.

    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.