Comment by the8472 Comment by the8472 a day ago 1 reply Copy Link View on Hacker News From/Into conversion via OwnedFd is the safe API, RawFd is the older and lower-level one.
Copy Link erk__ a day ago Collapse Comment - Ahh I guess that means that its possible in safe rust to cast a file descriptor to a different type. I was just looking at how socket2 did it and forgot to have a proper look. Reply View | 0 replies
Ahh I guess that means that its possible in safe rust to cast a file descriptor to a different type. I was just looking at how socket2 did it and forgot to have a proper look.