Trait to implement for all items that may be executed by the
fn run(self) -> R
Execute this task and return its result.
Task into a heap allocated
FnOnce if possible.
ThreadPool::execute to turn this
Task into a
directly without having to create an additional
Job that calls this
true if calling
as_fn() on this
Task trait for
AsyncTask in order to make it executable for the pool by
creating a waker and polling the future.
Task trait for any FnOnce closure that returns a thread-safe result.