Struct TaskDispatcher
pub struct TaskDispatcher(/* private fields */);Expand description
You can use TaskDispatcher to schedule execution of callbacks to the UI thread.
You can access Kanzi UI objects only on the thread that you create them on.
You can wrap code that accesses UI objects with tasks and submit them from any thread to the TaskDispatcher.
The UI thread will execute these tasks during its main loop.
Implementations§
§impl TaskDispatcher
impl TaskDispatcher
pub fn is_quitting(&self) -> bool
pub fn is_quitting(&self) -> bool
Indicates whether the task dispatcher is quitting. This flag is set before the emptying of the task queue begins.
§Returns
true if quitting, false if not.
Trait Implementations§
§impl Clone for TaskDispatcher
impl Clone for TaskDispatcher
§fn clone(&self) -> TaskDispatcher
fn clone(&self) -> TaskDispatcher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Send for TaskDispatcher
impl Sync for TaskDispatcher
Auto Trait Implementations§
impl Freeze for TaskDispatcher
impl RefUnwindSafe for TaskDispatcher
impl Unpin for TaskDispatcher
impl UnwindSafe for TaskDispatcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more