Event

data class Event(val userdata: Userdata, val error: Errno, val type: Eventtype, val fdReadwrite: EventFdReadwrite)(source)

WASI Preview1 type $event

An event that occurred.

Parameters

userdata

User-provided value that got attached to subscription::userdata.

error

If non-zero, an error that occurred while processing the subscription request.

type

The type of event that occured

fdReadwrite

The contents of the event, if it is an eventtype::fd_read or eventtype::fd_write. eventtype::clock events ignore this field.

Definition:

(typename $event
(record
;;; User-provided value that got attached to `subscription::userdata`.
(field $userdata $userdata)
;;; If non-zero, an error that occurred while processing the subscription request.
(field $error $errno)
;;; The type of event that occured
(field $type $eventtype)
;;; The contents of the event, if it is an `eventtype::fd_read` or
;;; `eventtype::fd_write`. `eventtype::clock` events ignore this field.
(field $fd_readwrite $event_fd_readwrite)
)
)

Constructors

Link copied to clipboard
constructor(userdata: Userdata, error: Errno, type: Eventtype, fdReadwrite: EventFdReadwrite)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard