Expand description
Event operations.
Modules§
- kqueue
- An API for interfacing with
kqueue.
Structs§
- FdSet
Element - Storage element type for use with
select. - FdSet
Iter - An iterator over the fds in a set.
- PollFd
struct pollfd—File descriptor and flags for use withpoll.- Poll
Flags POLL*flags for use withpoll.- Timespec
struct timespec—A quantity of time in seconds plus nanoseconds.
Functions§
- fd_
set_ bound - Compute the minimum
nfdsvalue needed for the set pointed to byfds. - fd_
set_ insert - Set
fdin the set pointed to byfds. - fd_
set_ num_ elements - Compute the number of
FdSetElements needed to hold a set which can contain up toset_countfile descriptors with values less thannfds. - fd_
set_ remove - Clear
fdin the set pointed to byfds. - pause
pause()—Sleep until interrupted by a signal.- poll
poll(self.fds, timeout)—Wait for events on lists of file descriptors.- select⚠
select(nfds, readfds, writefds, exceptfds, timeout)—Wait for events on sets of file descriptors.