Template Struct Event

Struct Documentation

template<typename S, typename T>
struct Event

Event data structure.

Public Functions

inline Event(EventTrigger t, EventPriority p, T time, std::string id, std::function<void(S&, T)> h)
inline bool operator<(const Event &other) const

Public Members

EventTrigger trigger
EventPriority priority
T timestamp
std::string event_id
std::function<void(S&, T)> handler
std::vector<uint8_t> data
std::chrono::steady_clock::time_point created_at
std::chrono::steady_clock::time_point processed_at
bool processed = {false}
bool timed_out = {false}