FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BindingSchedulers

    struct · ferroui-reactiveui · v0.5.0

    struct BindingSchedulers
    

    Where a binding delivers its writes to the view (BindingSchedulers).

    A write is delivered at once on the thread that owns the object it lands on, and otherwise through the IViewThreadInvoker that claims the object, or the scheduler the host set (set_main_thread).

    View source

    Members

    main_thread

    fn main_thread() -> Option<Rc<dyn IScheduler>>
    

    The scheduler a write that waits for the owning thread is delivered on, or None to use the view's own dispatcher (the getter of MainThread).

    Source

    set_main_thread

    fn set_main_thread(scheduler: Option<Rc<dyn IScheduler>>)
    

    Sets the scheduler a write that waits for the owning thread is delivered on, or None to use the view's own dispatcher (the setter of MainThread).

    Source

    use_schedule

    fn use_schedule(schedule: Option<Arc<dyn Schedule>>)
    

    Delivers the writes that wait for the owning thread through schedule (a dispatcher's task_schedule(priority)), or through the view's own dispatcher when schedule is None (UseSynchronizationContext).

    Source

    use_synchronization_context

    fn use_synchronization_context(context: Option<Arc<dyn ferroui_system::threading::SynchronizationContext>>)
    

    Delivers the writes that wait for the owning thread through context, or through the view's own dispatcher when context is None (UseSynchronizationContext).

    Deprecated since 0.5.0. use BindingSchedulers::use_schedule with a ferroui_system::task::Schedule

    Source

    observe_on_view_thread

    fn observe_on_view_thread<T: 'static>(source: Rc<dyn IObservable<T>>, target: Option<Rc<dyn Any>>) -> Rc<dyn IObservable<T>>
    

    source routed onto the thread that owns target, the object the write lands on; the source itself when target is None or no registered invoker claims it (ObserveOnViewThread<T>(IObservable<T>, object?)).

    Source

    observe_on_view_thread_with_fallback

    fn observe_on_view_thread_with_fallback<T: 'static>(source: Rc<dyn IObservable<T>>, target: Option<Rc<dyn Any>>, fallback: Rc<dyn IViewThreadInvoker>) -> Rc<dyn IObservable<T>>
    

    observe_on_view_thread, with fallback, the invoker of the platform of target, used when no registered invoker claims it; the source itself when target is None (ObserveOnViewThread<T>(IObservable<T>, object?, IViewThreadInvoker)).

    Source

    observe_on_sequencer

    fn observe_on_sequencer<T: 'static>(source: Rc<dyn IObservable<T>>, scheduler: Rc<dyn IScheduler>) -> Rc<dyn IObservable<T>>
    

    source observed on scheduler, a newer value replacing one that has not been delivered (ObserveOnSequencer<T>).

    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.