process: Move files to their own directory

This commit is contained in:
Ivan Petkov
2019-06-24 17:31:47 -07:00
parent b7846a4e2f
commit c6defbce4b
16 changed files with 0 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
use std::io;
/// An interface for killing a running process.
pub(crate) trait Kill {
/// Forcefully kill the process.
fn kill(&mut self) -> io::Result<()>;
}
impl<'a, T: 'a + Kill> Kill for &'a mut T {
fn kill(&mut self) -> io::Result<()> {
(**self).kill()
}
}