Module event

Source
Available on crate feature event only.
Expand description

Event operations.

Modules§

epoll
Linux epoll support.

Structs§

EventfdFlags
EFD_* flags for use with eventfd.
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.

Functions§

eventfd
eventfd(initval, flags)—Creates a file descriptor for event notification.
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()
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_sec field of Timespec.
Secs
A type for the tv_sec field of Timespec.
Timespec
struct timespec