struct

Termisu::Event::Poller::PollResult

Inherits Struct / Value / Object

Result of a poll wait operation.

Contains the event type and associated data:

  • For fd events: the file descriptor that triggered
  • For timer events: the timer handle and expiration count

Constructors

new(type : Type, fd : Int32 = -1, timer_handle : TimerHandle | Nil = nil, timer_expirations : UInt64 = 0_u64)
Source

Instance methods

fd_error?

Returns true if this is an fd error event.

Source
fd_readable?

Returns true if this is an fd readable event.

Source
fd_writable?

Returns true if this is an fd writable event.

Source
signal?

Returns true if this is a signal event.

Source
timer?

Returns true if this is a timer event.

Source
timer_expirations
Source
timer_handle
Source
type
Source

Nested types