Events

struct creating_pipe

Public Functions

inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const
template<>
struct klass<creating_pipe> : public pars::ev::base_klass<creating_pipe>

Public Types

using event_type = creating_pipe

Public Static Attributes

static std::string_view uuid = "adf2e44f-b005-449b-b849-e2b46377c122"
struct pipe_created

Public Functions

inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const
template<>
struct klass<pipe_created> : public pars::ev::base_klass<pipe_created>

Public Types

using event_type = pipe_created

Public Static Attributes

static std::string_view uuid = "2410aea6-ce8e-46d7-b3c4-0ef8ab598ef9"
struct pipe_removed

Public Functions

inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const
template<>
struct klass<pipe_removed> : public pars::ev::base_klass<pipe_removed>

Public Types

using event_type = pipe_removed

Public Static Attributes

static std::string_view uuid = "5fe36da8-c46a-4ef4-872d-5f11d610eaeb"
struct network_error

Public Functions

inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const

Public Members

std::error_code error
net::dir dir
template<>
struct klass<network_error> : public pars::ev::base_klass<network_error>

Public Types

using event_type = network_error

Public Static Attributes

static std::string_view uuid = "53b44f06-c5b3-400f-8e7e-522cb39c1168"
struct exception

Public Functions

inline std::string str() const
inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const

Public Members

std::exception_ptr eptr
template<>
struct klass<exception> : public pars::ev::base_klass<exception>

Public Types

using event_type = exception

Public Static Attributes

static std::string_view uuid = "25d02d6b-38d1-414b-a5ff-60d93c7746c9"
static bool requires_network = false
struct init

Public Functions

inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const
template<>
struct klass<init> : public pars::ev::base_klass<init>

Public Types

using event_type = init

Public Static Attributes

static std::string_view uuid = "bacffaf3-3f6a-4859-8495-c3b821ec69d5"
static bool requires_network = false
struct shutdown

Public Functions

inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const
template<>
struct klass<shutdown> : public pars::ev::base_klass<shutdown>

Public Types

using event_type = shutdown

Public Static Attributes

static std::string_view uuid = "47c543bb-ba37-4442-a5bd-4b2dcfbf1e02"
static bool requires_network = false
template<typename kind_of_event_t>
class spec

Public Types

using kind_of_event_type = kind_of_event_t
template<typename event_t>
using kind_type = kind_of_event_type::template kind_type<event_t>
using event_type = kind_of_event_type::event_type

Public Functions

inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const

Public Static Attributes

static std::size_t hash = uuid<kind_type<event_type>>::hash ^ (uuid<klass<event_type>>::hash << 1)
template<typename class_t>
struct uuid

Public Types

using class_type = class_t

Public Static Attributes

static std::size_t hash = hash_from_uuid(class_type::uuid)
template<typename event_t>
struct base_klass

Subclassed by pars::ev::klass< std::shared_ptr< event_t > >

Public Types

using event_type = event_t

Public Static Functions

template<template<typename> typename kind_of>
static inline executes exec_policy()

an event_t executes synchronously in every possibile kind_of<event_t>

Public Static Attributes

static bool requires_network = true

by default, an event_t requires network

template<typename event_t>
struct klass

Public Types

using event_type = event_t
template<>
struct klass<nng::msg> : public pars::ev::base_klass<nng::msg>

Public Types

using event_type = nng::msg
using event_type = nng::msg

Public Static Attributes

static std::string_view uuid = "a7c09171-c503-4cb2-97e4-de8d3fe621b3"
template<event_c event_t>
struct klass<std::shared_ptr<event_t>> : public pars::ev::base_klass<event_t>

Public Types

using event_type = std::shared_ptr<event_t>
using inner_event_type = event_t
using event_type = event_t

Public Static Functions

template<template<typename> typename kind_of>
static inline executes exec_policy()
template<typename Archive>
static inline void serialize(event_type &ev, Archive &ar)

Public Static Attributes

static std::string_view uuid = klass<inner_event_type>::uuid
template<template<typename> typename kind_of, event_c event_t>
struct metadata
template<template<typename> typename kind_of, sync_internal_event_c<kind_of> event_t>
struct metadata<kind_of, event_t> : public pars::ev::base_internal_metadata, public pars::ev::base_sync_metadata, public pars::ev::common_metadata<kind_of, event_t>, public pars::ev::base_network_metadata, public pars::ev::base_sync_metadata, public pars::ev::common_metadata<kind_of, event_t>, public pars::ev::base_internal_metadata, public pars::ev::base_async_metadata, public pars::ev::common_metadata<kind_of, event_t>, public pars::ev::base_network_metadata, public pars::ev::base_async_metadata, public pars::ev::common_metadata<kind_of, event_t>

Public Functions

inline base_internal_metadata()
inline base_network_metadata(int s_id, net::tool_view t, net::pipe p)
template<template<typename> typename kind_of, event_c event_t>
struct common_metadata

Subclassed by pars::ev::metadata< kind_of, event_t >, pars::ev::metadata< kind_of, event_t >, pars::ev::metadata< kind_of, event_t >, pars::ev::metadata< kind_of, event_t >

Public Types

template<typename event2_t>
using kind_type = kind_of<event2_t>
using event_type = event_t

Public Functions

inline int job_id() const
inline void set_job_id(int j_id)
struct base_internal_metadata

Subclassed by pars::ev::metadata< kind_of, event_t >, pars::ev::metadata< kind_of, event_t >

Public Functions

inline base_internal_metadata()
inline int socket_id() const
inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const
struct base_network_metadata

Subclassed by pars::ev::metadata< kind_of, event_t >, pars::ev::metadata< kind_of, event_t >

Public Functions

inline base_network_metadata(int s_id, net::tool_view t, net::pipe p)
inline const net::tool_view &tool() const
inline const net::pipe &pipe() const
inline int socket_id() const
inline decltype(ctx.out()) format_to(fmt::format_context &ctx) const
struct base_sync_metadata

Subclassed by pars::ev::metadata< kind_of, event_t >, pars::ev::metadata< kind_of, event_t >

struct base_async_metadata

Subclassed by pars::ev::metadata< kind_of, event_t >, pars::ev::metadata< kind_of, event_t >

Public Functions

inline std::stop_token stop_token() const
inline void set_stop_token(std::stop_token tk)