userver: engine::io::Poller::Event Struct Reference
Loading...
Searching...
No Matches
engine::io::Poller::Event Struct Reference

#include <userver/engine/io/poller.hpp>

Detailed Description

I/O event.

Definition at line 25 of file poller.hpp.

Public Types

enum  Type {
  kNone = 0 ,
  kRead = (1 << 0) ,
  kWrite = (1 << 1) ,
  kError
}
 I/O event type. More...
 

Public Attributes

int fd {kInvalidFd}
 File descriptor responsible for the event.
 
utils::Flags< Typetype {kNone}
 Triggered event types.
 
size_t epoch {0}
 Event epoch, for internal use.
 

Member Enumeration Documentation

◆ Type

I/O event type.

Enumerator
kNone 

No active event (or interruption)

kRead 

File descriptor is ready for reading.

kWrite 

File descriptor is ready for writing.

kError 

File descriptor is in error state (always awaited)

Definition at line 27 of file poller.hpp.

Member Data Documentation

◆ epoch

size_t engine::io::Poller::Event::epoch {0}

Event epoch, for internal use.

Definition at line 40 of file poller.hpp.

◆ fd

int engine::io::Poller::Event::fd {kInvalidFd}

File descriptor responsible for the event.

Definition at line 36 of file poller.hpp.

◆ type

utils::Flags<Type> engine::io::Poller::Event::type {kNone}

Triggered event types.

Definition at line 38 of file poller.hpp.


The documentation for this struct was generated from the following file: