#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 } |
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 40 of file poller.hpp.
int engine::io::Poller::Event::fd {kInvalidFd} |
File descriptor responsible for the event.
Definition at line 36 of file poller.hpp.
utils::Flags<Type> engine::io::Poller::Event::type {kNone} |
Triggered event types.
Definition at line 38 of file poller.hpp.