pars 0.2.1.99
Loading...
Searching...
No Matches
pars::ev::network_error Struct Reference

#include <event.h>

Public Member Functions

auto format_to (std::format_context &ctx) const -> decltype(ctx.out())
 

Public Attributes

std::error_code error
 
net::dir dir
 

Detailed Description

Definition at line 91 of file event.h.

Member Function Documentation

◆ format_to()

auto pars::ev::network_error::format_to ( std::format_context & ctx) const -> decltype(ctx.out())
inline

Definition at line 96 of file event.h.

97 {
98 return std::format_to(ctx.out(), "network_error({}, {})", error,
99 (dir == net::dir::out ? "out" : "in"));
100 }
clev::own< nng_ctx > ctx
Definition ctx.h:39
std::error_code error
Definition event.h:93

References dir, error, and pars::net::out.

Member Data Documentation

◆ dir

net::dir pars::ev::network_error::dir

Definition at line 94 of file event.h.

Referenced by format_to().

◆ error

std::error_code pars::ev::network_error::error

Definition at line 93 of file event.h.

Referenced by format_to().


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