(&self)
| 475 | } |
| 476 | |
| 477 | fn bin_name(&self) -> Cow<'_, str> { |
| 478 | self.0 |
| 479 | .bin |
| 480 | .components() |
| 481 | .last() |
| 482 | .expect("Binary name must not be empty") |
| 483 | .as_os_str() |
| 484 | .to_string_lossy() |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | /// Wraps [`std::process::Child`], kills and waits for the process on [`Drop`]. |
no outgoing calls
no test coverage detected