FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BuildTreeScheduler

    struct · ferroui-controls-repeater · v0.5.0

    struct BuildTreeScheduler
    

    Schedules phased binding work against the framework's rendering clock and yields after the same 40 ms work budget as the source implementation.

    View source

    Members

    register_work

    fn register_work(priority: i32, callback: impl FnOnce() -> () + 'static) -> Rc<dyn IDisposable>
    

    Registers work for a rendering frame. Disposing the returned handle cancels it until invocation starts, including from another callback in the same frame. Dropping the handle does not cancel the work.

    Source

    should_yield

    fn should_yield() -> bool
    

    Source

    pending_work_count

    fn pending_work_count() -> usize
    

    Source

    budget_milliseconds

    fn budget_milliseconds() -> f64
    

    Source

    set_budget_milliseconds

    fn set_budget_milliseconds(value: f64)
    

    Source

    Trait implementations

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

    Availability

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