pub struct UiDispatcher;Implementations§
Source§impl UiDispatcher
impl UiDispatcher
Sourcepub fn prepare(callback: impl FnOnce() + 'static) -> UiDispatchHandle
pub fn prepare(callback: impl FnOnce() + 'static) -> UiDispatchHandle
Keeps retained work on the UI thread and returns a token that may be sent to a worker.
Auto Trait Implementations§
impl Freeze for UiDispatcher
impl RefUnwindSafe for UiDispatcher
impl Send for UiDispatcher
impl Sync for UiDispatcher
impl Unpin for UiDispatcher
impl UnsafeUnpin for UiDispatcher
impl UnwindSafe for UiDispatcher
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