pub struct TaskScope { /* private fields */ }Expand description
A task that lasts as long as this value: registered on creation, ended on drop — stopped if its token was cancelled, done otherwise. For work bounded by one call, like a shell command.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TaskScope
impl !UnwindSafe for TaskScope
impl Forget for TaskScope
impl Freeze for TaskScope
impl Move for TaskScope
impl Send for TaskScope
impl Sync for TaskScope
impl Unpin for TaskScope
impl UnsafeUnpin for TaskScope
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