pub struct Task<T> { /* private fields */ }Expand description
Handle to a background task. The result is delivered to the thread that
spawned the task through the given Scheduler; subscribe with
Task::results.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Task<T>
impl<T> !RefUnwindSafe for Task<T>
impl<T> !Send for Task<T>
impl<T> !Sync for Task<T>
impl<T> !UnwindSafe for Task<T>
impl<T> Unpin for Task<T>
impl<T> UnsafeUnpin for Task<T>
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