pub struct TaskHandle { /* private fields */ }Expand description
任务句柄:drop 不会取消任务;需要取消显式调用 TaskHandle::cancel。
Implementations§
Source§impl TaskHandle
impl TaskHandle
pub fn is_cancelled(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for TaskHandle
impl !Send for TaskHandle
impl !Sync for TaskHandle
impl !UnwindSafe for TaskHandle
impl Forget for TaskHandle
impl Freeze for TaskHandle
impl Move for TaskHandle
impl Unpin for TaskHandle
impl UnsafeUnpin for TaskHandlewhere
*const RcInner<RefCell<ExecutorInner>> is !null: UnsafeUnpin,
*const RcInner<Cell<bool>> is !null: UnsafeUnpin,
PhantomData<RcInner<Cell<bool>>>: 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