AsioEvent¶
Functions for asynchronous event notification.
Constructors¶
create¶
Returns¶
- AsioEvent val^
Public Functions¶
none¶
An empty event.
Returns¶
readable¶
Returns true if the flags contain the readable flag.
Parameters¶
- flags: U32 val
Returns¶
- Bool val
writeable¶
Returns true if the flags contain the writeable flag.
Parameters¶
- flags: U32 val
Returns¶
- Bool val
disposable¶
Returns true if the event should be disposed of.
Parameters¶
- flags: U32 val
Returns¶
- Bool val
errored¶
Returns true if the flags contain the error flag, indicating a subscription failure. The event is compromised and the actor should tear down.
Parameters¶
- flags: U32 val
Returns¶
- Bool val
oneshotable¶
Returns true if the flags contain the oneshot flag.
Parameters¶
- flags: U32 val
Returns¶
- Bool val
dispose¶
Returns¶
- U32 val
read¶
Returns¶
- U32 val
write¶
Returns¶
- U32 val
timer¶
Returns¶
- U32 val
signal¶
Returns¶
- U32 val
proc¶
Subscribe for a process-exit event, which fires when the child exits. On
kqueue platforms the event's fd is the child's pid; on Windows its nsec
carries the child's process handle and its fd is unused. Must match
ASIO_PROC in the runtime's asio.h.
Returns¶
- U32 val
pipe¶
Mark an event as a pipe that the Windows readiness backend peeks. A Windows
pipe has no readiness signal, so the backend peeks it and delivers
ASIO_READ/ASIO_WRITE. Combine with one direction flag (read or
write). Must match ASIO_PIPE in the runtime's asio.h.
Returns¶
- U32 val
read_write¶
Returns¶
- U32 val
oneshot¶
Returns¶
- U32 val
read_write_oneshot¶
Returns¶
- U32 val
eq¶
Parameters¶
- that: AsioEvent val
Returns¶
- Bool val
ne¶
Parameters¶
- that: AsioEvent val
Returns¶
- Bool val