Crate compio_driver
source ·Expand description
The platform-specified driver. Some types differ by compilation target.
Modules
- The async operations. Types in this mod represents the low-level operations passed to kernel. The operation itself doesn’t perform anything. You need to pass them tocrate::Proactor, and poll the driver.
Structs
- An completed entry returned from kernel.
- Contains the operation and the user_data.
- The overlapped struct we actually used for IOCP.
- Low-level actions of completion-based IO. It owns the operations to keep the driver safe.
Enums
- The return type ofProactor::push.
Traits
- Extracts raw fds.
- Contruct IO objects from raw fds.
- Consumes an object and acquire ownership of its raw fd.
- Abstraction of IOCP operations.
Type Aliases
- On windows, handle and socket are in the same size. Both of them could be attached to an IOCP. Therefore, both could be seen as fd.