Module lrs::poll

File descriptor polling.

Types

KindNameDescription
Struct Epoll

An epoll instance.

Struct Event

An event returned after polling.

Struct PollFlags

Flags for modifying a polled file descriptor.

Constants

NameDescription
EMPTY_EVENT

Constructor for creating Event arrays.

POLL_EDGE_TRIGGERED

Enable edge-triggered polling.

POLL_ONE_SHOT

Signal only once for this file descriptor.

POLL_PRIORITY

Signal when priority data becomes available for reading.

POLL_READ

Signal when the file descriptor becomes ready for reading.

POLL_READ_HANG_UP

Signal when the peer has hung up his write end.

POLL_WAKE_UP

Don't allow the system to suspend after data becomes available.

POLL_WRITE

Signal when the file descriptor becomes ready for writing.