Function fdio::create_fd

source ยท
pub fn create_fd(handle: Handle) -> Result<OwnedFd, Status>
Expand description

Create an object from a handle.

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