FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SynchronizationContext

    trait · ferroui-system · v0.5.0

    trait SynchronizationContext: Send + Sync
    

    Where posted work runs (System.Threading.SynchronizationContext).

    The base class of .NET posts to the thread pool and sends on the calling thread; here every implementation says where its work runs. An implementation is shared between threads, as the contexts of .NET are.

    View source

    Deprecated since 0.5.0. use a ferroui_system::task::Schedule: the dispatcher's task_schedule(priority), task::current_schedule() and Schedule::schedule_local

    Members

    post

    fn post(self: &Self, work: Box<dyn FnOnce() -> () + Send>)
    

    Queues work to run on the context, from any thread, without waiting for it (Post).

    Deprecated since 0.5.0. use a ferroui_system::task::Schedule: the dispatcher's task_schedule(priority), task::current_schedule() and Schedule::schedule_local

    Source

    send

    fn send(self: &Self, work: Box<dyn FnOnce() -> () + Send>)
    

    Runs work on the context, from any thread, and waits for it (Send).

    Deprecated since 0.5.0. use a ferroui_system::task::Schedule: the dispatcher's task_schedule(priority), task::current_schedule() and Schedule::schedule_local

    Source

    post_local

    fn post_local(self: &Self, work: Box<dyn FnOnce() -> ()>)
    

    Queues work, which is not Send, to run on the context (Post from the thread of the context). Implementations may panic when it is called from another thread.

    Deprecated since 0.5.0. use a ferroui_system::task::Schedule: the dispatcher's task_schedule(priority), task::current_schedule() and Schedule::schedule_local

    Source

    send_local

    fn send_local(self: &Self, work: Box<dyn FnOnce() -> ()>)
    

    Runs work, which is not Send, on the context and waits for it (Send from the thread of the context). Implementations may panic when it is called from another thread.

    Deprecated since 0.5.0. use a ferroui_system::task::Schedule: the dispatcher's task_schedule(priority), task::current_schedule() and Schedule::schedule_local

    Source

    operation_started

    fn operation_started(self: &Self)
    

    Tells the context that an operation has started (OperationStarted); nothing by default.

    Deprecated since 0.5.0. use a ferroui_system::task::Schedule: the dispatcher's task_schedule(priority), task::current_schedule() and Schedule::schedule_local

    Source

    operation_completed

    fn operation_completed(self: &Self)
    

    Tells the context that an operation has completed (OperationCompleted); nothing by default.

    Deprecated since 0.5.0. use a ferroui_system::task::Schedule: the dispatcher's task_schedule(priority), task::current_schedule() and Schedule::schedule_local

    Source

    Availability

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