OpenStatus — success, or an OpenError payload with the reason
and the captured OS error code.
OpenStatus open(ref EventLoop loop, scope const(char)[] path, int flags) @trustedOpen a file for reading and/or writing.
On success, EVE owns the fd. Must eventually call close() or dispose(). On failure, no cleanup required.
loop | Event loop to register completion watcher with. |
path | Path to the file to open. |
flags | POSIX open flags (O_RDONLY, O_WRONLY, O_RDWR, O_CREAT, etc.) |
OpenStatus — success, or an OpenError payload with the reason
and the captured OS error code.