pub struct IdleTask { /* private fields */ }Expand description
Task that is created but not running yet.
It will be scheduled on run() or on drop.
The ’a lifetime is responsible for the data
in the closure of the task function.
Implementations§
Source§impl IdleTask
impl IdleTask
Sourcepub fn run(self) -> RunningTask
pub fn run(self) -> RunningTask
Schedule this task for running.
It will only be executed once the dependencies are fulfilled.
Sourcepub fn run_attached(self)
pub fn run_attached(self)
Run the task now and block until it’s executed. Use the current thread to help the choir in the meantime.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IdleTask
impl !RefUnwindSafe for IdleTask
impl Send for IdleTask
impl Sync for IdleTask
impl Unpin for IdleTask
impl !UnwindSafe for IdleTask
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