pub struct KillOnDrop(pub Group);Expand description
Stops a Process’s group when dropped: kept in a future that waits
for the process on another thread (blocking), it
asks the group to stop (SIGTERM) the moment the future is dropped,
such as when a call is interrupted or the app quits, and kills it
STOP_GRACE later if it still runs. The thread waiting for the
process must go on reaping it meanwhile, as Process::run does.
Tuple Fields§
§0: GroupTrait Implementations§
Source§impl Drop for KillOnDrop
impl Drop for KillOnDrop
Auto Trait Implementations§
impl Freeze for KillOnDrop
impl RefUnwindSafe for KillOnDrop
impl Send for KillOnDrop
impl Sync for KillOnDrop
impl Unpin for KillOnDrop
impl UnsafeUnpin for KillOnDrop
impl UnwindSafe for KillOnDrop
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