Skip to main content

child_pipe_to_file

Function child_pipe_to_file 

Source
pub fn child_pipe_to_file(pipe: impl Into<OwnedFd>) -> File
Expand description

Convert a child process’s stdout/stderr pipe into a std::fs::File so it can be wrapped in a [PolledPipe]. The owned-handle type differs by platform, but the conversion is otherwise identical.