pub struct Microtask { /* private fields */ }Expand description
A microtask callback. Boxed FnOnce(), consumed on execution.
Microtasks are always highest priority and always drain completely. There is no priority differentiation within microtasks.
Implementations§
Auto Trait Implementations§
impl Freeze for Microtask
impl !RefUnwindSafe for Microtask
impl !Send for Microtask
impl !Sync for Microtask
impl Unpin for Microtask
impl UnsafeUnpin for Microtask
impl !UnwindSafe for Microtask
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