pub enum ProcessToolCommand {
Program {
program: String,
args: Vec<String>,
},
SleepUntilKilled {
seconds: u64,
},
}Expand description
How the child process is launched for ProcessIsolated tools.
Only direct program exec is supported — never sh -c (grandchild would not
die with the parent shell; V2 §14.3 / D-043).
Variants§
Program
Direct program + args; kill reaps this PID. Payload JSON is written to stdin.
SleepUntilKilled
Sleep until killed (qualification: child is sleep itself).
Trait Implementations§
Source§impl Clone for ProcessToolCommand
impl Clone for ProcessToolCommand
Source§fn clone(&self) -> ProcessToolCommand
fn clone(&self) -> ProcessToolCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProcessToolCommand
impl RefUnwindSafe for ProcessToolCommand
impl Send for ProcessToolCommand
impl Sync for ProcessToolCommand
impl Unpin for ProcessToolCommand
impl UnsafeUnpin for ProcessToolCommand
impl UnwindSafe for ProcessToolCommand
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