pub struct VmTaskHandle {
pub handle: VmJoinHandle,
pub cancel_token: Arc<AtomicBool>,
}Expand description
A spawned async task handle with cancellation support.
Fields§
§handle: VmJoinHandle§cancel_token: Arc<AtomicBool>Cooperative cancellation token. Set to true to request graceful shutdown.
Auto Trait Implementations§
impl Freeze for VmTaskHandle
impl RefUnwindSafe for VmTaskHandle
impl !Send for VmTaskHandle
impl !Sync for VmTaskHandle
impl Unpin for VmTaskHandle
impl UnsafeUnpin for VmTaskHandle
impl UnwindSafe for VmTaskHandle
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