pub struct TaskGuard { /* private fields */ }
Expand description
A TaskGuard
represents a handle to a future task. When it is dropped, we will attempt to cancel that task. If you would like the task to continue running in the background, use the .detach()
method
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TaskGuard
impl RefUnwindSafe for TaskGuard
impl Send for TaskGuard
impl Sync for TaskGuard
impl Unpin for TaskGuard
impl UnwindSafe for TaskGuard
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