Trait os_pipe::IntoStdio [−][src]
pub trait IntoStdio { fn into_stdio(self) -> Stdio; }
A trait for types that hold file handles, like
std::fs::File
,
PipeReader
, and
PipeWriter
, which provides a conversion to
std::process::Stdio
The standard library almost supports this conversion, but it requires
platform-specific traits and an unsafe
call. This is a safe wrapper for
convenience.
Required Methods
fn into_stdio(self) -> Stdio
Implementors
impl<T: IntoRawFd> IntoStdio for T