pub(crate) struct JobHandle(pub(crate) HANDLE);Expand description
Owns a Windows Job Object handle. CloseHandle on drop. The job’s
JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE flag means closing the last handle
terminates every assigned process — which is what we want as a backstop
if this launcher dies abruptly.
Tuple Fields§
§0: HANDLETrait Implementations§
impl Send for JobHandle
Available on Windows only.
Auto Trait Implementations§
impl Freeze for JobHandle
impl RefUnwindSafe for JobHandle
impl !Sync for JobHandle
impl Unpin for JobHandle
impl UnwindSafe for JobHandle
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