We pass raw fds into a Rust program via FFI, unix domain sockets, and inheritance. There's no way to use EventFd
in those situations because I don't see even an unsafe API to convert OwnedFd
into EventFd
.
Since it's unsafe, maybe a From
instance is not appropriate, but perhaps EventFd::from_fd
?
What do you think?