You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nix::poll::PollFd currently only exposes revents(). However, there is no way to get to the actual fd because libc::pollfd is private. I think a function like:
impl PollFd {
pub fn fd(&self) -> RawFd { self.pollfd.fd }
}
or similar would be useful.
As it stands, I dont really know how to figure out which event belongs to which fd.
The text was updated successfully, but these errors were encountered:
1516: Implement AsRawFd for PollFd r=asomers a=cemeyer
Implement the trait on PollFd, providing an `as_raw_fd()` accessor to
get the RawFd associated with the PollFd.
Subsumes #1147, #1286. Closes#1146.
Test: `cargo test --test test test_pollfd_fd`
Co-authored-by: Conrad Meyer <cem@FreeBSD.org>
nix::poll::PollFd currently only exposes revents(). However, there is no way to get to the actual fd because libc::pollfd is private. I think a function like:
impl PollFd {
pub fn fd(&self) -> RawFd { self.pollfd.fd }
}
or similar would be useful.
As it stands, I dont really know how to figure out which event belongs to which fd.
The text was updated successfully, but these errors were encountered: