Available on crate feature
event only.Expand description
Event operations.
Modules§
- epoll
linux_kernelor illumos or Redox - Linux
epollsupport.
Structs§
- Eventfd
Flags linux_kernelor FreeBSD or illumos ortarget_os=espidf EFD_*flags for use witheventfd.- FdSet
Element ( bsdorlinux_kernelor Windows or WASI) andlinux_like - Storage element type for use with
select. - FdSet
Iter ( bsdorlinux_kernelor Windows or WASI) and neither Windows nor WASI - 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§
- eventfd
linux_kernelor FreeBSD or illumos ortarget_os=espidf eventfd(initval, flags)—Creates a file descriptor for event notification.- fd_
set_ bound bsdorlinux_kernelor Windows or WASI - Compute the minimum
nfdsvalue needed for the set pointed to byfds. - fd_
set_ insert bsdorlinux_kernelor Windows or WASI - Set
fdin the set pointed to byfds. - fd_
set_ num_ elements bsdorlinux_kernelor Windows or WASI - Compute the number of
FdSetElements needed to hold a set which can contain up toset_countfile descriptors with values less thannfds. - fd_
set_ remove bsdorlinux_kernelor Windows or WASI - Clear
fdin the set pointed to byfds. - pause
Neither Windows nor Redox nor WASI pause()—Sleep until interrupted by a signal.- poll
poll(self.fds, timeout)—Wait for events on lists of file descriptors.- select⚠
bsdorlinux_kernelor Windows or WASI select(nfds, readfds, writefds, exceptfds, timeout)—Wait for events on sets of file descriptors.