#include <userver/engine/io/poller.hpp>
I/O event.
Definition at line 25 of file poller.hpp.
Public Types | |
enum | Type { kNone = 0 , kRead = (1 << 0) , kWrite = (1 << 1) , kError = (1 << 2) } |
I/O event type. More... | |
Public Attributes | |
int | fd {kInvalidFd} |
File descriptor responsible for the event. | |
utils::Flags< Type > | type {kNone} |
Triggered event types. | |
size_t | epoch {0} |
Event epoch, for internal use. | |
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.
size_t engine::io::Poller::Event::epoch {0} |
Event epoch, for internal use.
Definition at line 39 of file poller.hpp.
int engine::io::Poller::Event::fd {kInvalidFd} |
File descriptor responsible for the event.
Definition at line 35 of file poller.hpp.
utils::Flags<Type> engine::io::Poller::Event::type {kNone} |
Triggered event types.
Definition at line 37 of file poller.hpp.