Function fdio::create_fd

source ·
pub fn create_fd<F: FromRawFd>(handle: Handle) -> Result<F, Status>
Expand description

Create an object from a handle.

Afterward, the handle is owned by fdio, and will close with F. See transfer_fd for a way to get it back.