pub struct MainThreadTask(/* private fields */);Expand description
A function to run once on the platform’s main thread. The platform calls
MainThreadTask::run there.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MainThreadTask
impl !Sync for MainThreadTask
impl !UnwindSafe for MainThreadTask
impl Forget for MainThreadTask
impl Freeze for MainThreadTask
impl Move for MainThreadTask
impl Send for MainThreadTask
impl Unpin for MainThreadTask
impl UnsafeUnpin for MainThreadTask
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