Module event
Available on crate feature
dep_rustix
only.Expand description
Event operations.
Modules§
- epoll
- Linux
epoll
support.
Structs§
- Eventfd
Flags EFD_*
flags for use witheventfd
.- 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
.
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 byfds
. - fd_
set_ insert - Set
fd
in the set pointed to byfds
. - fd_
set_ num_ elements - Compute the number of
FdSetElement
s needed to hold a set which can contain up toset_count
file descriptors with values less thannfds
. - fd_
set_ remove - Clear
fd
in the set pointed to byfds
. - 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.