Expand description
Platform-specific I/O primitives.
Provides a thin, cross-platform surface over OS I/O handles, interest flags,
and event types. Unix uses libc raw file descriptors; Windows stubs use
windows-sys HANDLE types.
Structs§
- Event
- A single I/O readiness event returned from a
pollcall. - Interest
- Bitmask describing which I/O events a source is interested in.
Functions§
- close_
fd - Close a file descriptor.
- create_
pipe - Create an OS pipe and return
(read_fd, write_fd). - events_
with_ capacity - Create a fresh
Eventsbuffer with the given capacity pre-allocated. - set_
nonblocking - Set a file descriptor to non-blocking mode.