struct
Termisu::Event::Poller::PollResult
- Termisu::Event::Poller::PollResult
- Struct
- Value
- Object
Overview
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
Defined in:
termisu/event/poller.crConstructors
Instance Method Summary
- #fd : Int32
-
#fd_error? : Bool
Returns true if this is an fd error event.
-
#fd_readable? : Bool
Returns true if this is an fd readable event.
-
#fd_writable? : Bool
Returns true if this is an fd writable event.
-
#signal? : Bool
Returns true if this is a signal event.
-
#timer? : Bool
Returns true if this is a timer event.
- #timer_expirations : UInt64
- #timer_handle : TimerHandle | Nil
- #type : Type
Constructor Detail
def self.new(type : Type, fd : Int32 = -1, timer_handle : TimerHandle | Nil = nil, timer_expirations : UInt64 = 0_u64)
#