Y
Hacker News
new
|
ask
|
show
|
jobs
by
the8472
202 days ago
From/Into conversion via OwnedFd is the safe API, RawFd is the older and lower-level one.
1 comments
erk__
202 days ago
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.
link