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 TaskScopewhere
*const ArcInner<dyn Session> is !null: Freeze,
PhantomData<ArcInner<dyn Session>>: Freeze,
*const ArcInner<RunningTask> is !null: Freeze,
PhantomData<ArcInner<RunningTask>>: Freeze,
impl Move for TaskScope
impl Send for TaskScope
impl Sync for TaskScope
impl Unpin for TaskScope
impl UnsafeUnpin for TaskScopewhere
*const ArcInner<dyn Session> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Session>>: UnsafeUnpin,
*const ArcInner<RunningTask> is !null: UnsafeUnpin,
PhantomData<ArcInner<RunningTask>>: UnsafeUnpin,
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