Lines Matching refs:PollFd
14 /// retrieved by calling [`revents()`](#method.revents) on the `PollFd`.
17 pub struct PollFd {
21 impl PollFd {
22 /// Creates a new `PollFd` specifying the events of interest
24 pub const fn new(fd: RawFd, events: PollFlags) -> PollFd {
25 PollFd {
45 /// This is marginally more efficient than [`PollFd::all`].
55 /// This is marginally less efficient than [`PollFd::any`].
60 /// The events of interest for this `PollFd`.
65 /// Modify the events of interest for this `PollFd`.
71 impl AsRawFd for PollFd {
115 /// [`PollFd::revents`](struct.PollFd.html#method.revents);
116 /// ignored in [`PollFd::new`](struct.PollFd.html#method.new)).
120 /// Hang up (only returned in [`PollFd::revents`](struct.PollFd.html#method.revents);
121 /// ignored in [`PollFd::new`](struct.PollFd.html#method.new)).
129 /// [`PollFd::revents`](struct.PollFd.html#method.revents);
130 /// ignored in [`PollFd::new`](struct.PollFd.html#method.new)).
138 /// `fds` contains all [`PollFd`](struct.PollFd.html) to poll.
139 /// The function will return as soon as any event occur for any of these `PollFd`s.
155 pub fn poll(fds: &mut [PollFd], timeout: libc::c_int) -> Result<libc::c_int> {
182 fds: &mut [PollFd],