the usage of unsafe implies there is some unchecked precondition(s) that must be true to prevent UB, but there is no documentation saying what this precondition might be.
this means there's basically no way to know if you are using this interface soundly.
Location
https://doc.rust-lang.org/std/os/fd/trait.FromRawFd.html#tymethod.from_raw_fd
Summary
the usage of
unsafe
implies there is some unchecked precondition(s) that must be true to prevent UB, but there is no documentation saying what this precondition might be.this means there's basically no way to know if you are using this interface soundly.