FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IDispatcher

    trait · ferroui-base · v0.5.0

    trait IDispatcher
    

    Dispatches jobs to a thread.

    View source

    Members

    check_access

    fn check_access(self: &Self) -> bool
    

    Determines whether the calling thread is the thread associated with this dispatcher.

    Source

    verify_access

    fn verify_access(self: &Self)
    

    Panics when the calling thread is not the thread associated with this dispatcher.

    Source

    post

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

    Posts an action that will be invoked on the dispatcher thread.

    The action can be posted from any thread and therefore has to be Send.

    Source

    Trait implementations

    Availability

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