pub struct TaskHandle { /* private fields */ }Implementations§
Source§impl TaskHandle
impl TaskHandle
pub fn cancel(&self)
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Whether the spawned future has finished or been cancelled.
Auto Trait Implementations§
impl !RefUnwindSafe for TaskHandle
impl !Send for TaskHandle
impl !Sync for TaskHandle
impl !UnwindSafe for TaskHandle
impl Freeze for TaskHandle
impl Unpin for TaskHandle
impl UnsafeUnpin for TaskHandle
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