pub struct Task { /* private fields */ }
A struct representing a task that can be executed in the system.
Creates a new Task instance with the provided future.
Task
future
A new Task instance containing the given future.
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.
[From]<T> for U