Module event

Source
Expand description

Event operations.

Modules§

kqueue
An API for interfacing with kqueue.

Structs§

FdSetElement
Storage element type for use with select.
FdSetIter
An iterator over the fds in a set.
PollFd
struct pollfd—File descriptor and flags for use with poll.
PollFlags
POLL* flags for use with poll.
Timespec
struct timespec—A quantity of time in seconds plus nanoseconds.

Functions§

fd_set_bound
Compute the minimum nfds value needed for the set pointed to by fds.
fd_set_insert
Set fd in the set pointed to by fds.
fd_set_num_elements
Compute the number of FdSetElements needed to hold a set which can contain up to set_count file descriptors with values less than nfds.
fd_set_remove
Clear fd in the set pointed to by fds.
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.

Type Aliases§

Nsecs
A type for the tv_nsec field of Timespec.
Secs
A type for the tv_sec field of Timespec.