IDispatcher
trait · ferroui-base · v0.5.0
trait IDispatcher
Dispatches jobs to a thread.
Members
check_access
fn check_access(self: &Self) -> bool
Determines whether the calling thread is the thread associated with this dispatcher.
verify_access
fn verify_access(self: &Self)
Panics when the calling thread is not the thread associated with this dispatcher.
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.