IViewThreadInvoker
trait · ferroui-reactiveui · v0.5.0
trait IViewThreadInvoker
Runs the write of a binding on the thread that owns the object it lands on, through the
dispatcher of its platform (IViewThreadInvoker).
An invoker is registered in AppLocator as dyn IViewThreadInvoker and found through
ViewThreadInvokers. The objects are given as Rc<dyn Any>, so
that an invoker can downcast them to the types of its platform, or compare them by identity.
Members
claims
fn claims(self: &Self, target: &Rc<dyn Any>) -> bool
Whether this invoker handles target, an object of its platform (Claims).
check_access
fn check_access(self: &Self, target: &Rc<dyn Any>) -> bool
Whether the calling thread may write to target, an object this invoker claims, directly:
on the owning thread, or when the object has no owning thread (CheckAccess).
post
fn post(self: &Self, target: &Rc<dyn Any>, callback: Box<dyn FnOnce() -> ()>)
Queues callback on the thread that owns target, an object this invoker claims
(Post).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.