process: Implement AsRawHandle for ChildStd{in, out, err} for parity

This commit is contained in:
Ivan Petkov
2019-06-24 16:57:17 -07:00
parent e0e9594f71
commit 76438c9e70
2 changed files with 27 additions and 0 deletions
+24
View File
@@ -643,3 +643,27 @@ mod sys {
}
}
}
#[cfg(windows)]
mod sys {
use std::os::windows::io::{AsRawHandle, RawHandle};
use super::{ChildStdin, ChildStdout, ChildStderr};
impl AsRawHandle for ChildStdin {
fn as_raw_handle(&self) -> RawHandle {
self.inner.get_ref().as_raw_handle()
}
}
impl AsRawHandle for ChildStdout {
fn as_raw_handle(&self) -> RawHandle {
self.inner.get_ref().as_raw_handle()
}
}
impl AsRawHandle for ChildStderr {
fn as_raw_handle(&self) -> RawHandle {
self.inner.get_ref().as_raw_handle()
}
}
}