Struct cros_async::sys::unix::fd_executor::RegisteredSource
source · pub struct RegisteredSource<F> {
pub(crate) source: F,
ex: Weak<RawExecutor<EpollReactor>>,
pub(crate) duped_fd: Arc<OwnedFd>,
}
Fields§
§source: F
§ex: Weak<RawExecutor<EpollReactor>>
§duped_fd: Arc<OwnedFd>
A clone of source
’s underlying FD. Allows us to ensure that the FD isn’t closed during
the epoll wait call. There are well defined sematics for closing an FD in an epoll context
so it might be possible to eliminate this dup if someone thinks hard about it.