struct Termisu::Event::Poller::PollResult

Overview

Result of a poll wait operation.

Contains the event type and associated data:

Defined in:

termisu/event/poller.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def fd : Int32 #

[View source]
def fd_error? : Bool #

Returns true if this is an fd error event.


[View source]
def fd_readable? : Bool #

Returns true if this is an fd readable event.


[View source]
def fd_writable? : Bool #

Returns true if this is an fd writable event.


[View source]
def signal? : Bool #

Returns true if this is a signal event.


[View source]
def timer? : Bool #

Returns true if this is a timer event.


[View source]
def timer_expirations : UInt64 #

[View source]
def timer_handle : TimerHandle | Nil #

[View source]
def type : Type #

[View source]