GLib.PollFD.events

PollFD.events: gushort (Read / Write)
  

a bitwise combination from GLib.IOCondition, specifying which events should be polled for. Typically for reading from a file descriptor you would use GLib.IOCondition.in | GLib.IOCondition.hup | GLib.IOCondition.err, and for writing you would use GLib.IOCondition.out | GLib.IOCondition.err.