fdio

Function bind_to_fd

Source
pub fn bind_to_fd(handle: Handle, fd: RawFd) -> Result<(), Status>
Expand description

Bind a handle to a specific file descriptor.

Afterward, the handle is owned by fdio, and will close when the file descriptor is closed. See transfer_fd for a way to get it back.