Skip to main content

replace_stdio_fd

Function replace_stdio_fd 

Source
fn replace_stdio_fd(this: BorrowedFd<'_>, other: OwnedFd) -> Result<()>
Available on Unix only.
Expand description

Replaces the underlying file descriptor with the one from other. Does not set CLOEXEC.