pub struct Task {
pub id: String,
pub future: TaskFuture,
}
Expand description
Represents an asynchronous task with an identifier and a future.
Fields§
§id: String
Unique identifier of the task.
future: TaskFuture
The asynchronous computation to be executed.
Implementations§
Auto Trait Implementations§
impl Freeze for Task
impl !RefUnwindSafe for Task
impl Send for Task
impl !Sync for Task
impl Unpin for Task
impl !UnwindSafe for Task
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