|
pars 0.2.1.99
|
Represents an nng_socket or nng_ctx view. More...
#include <tool_view.h>
Public Member Functions | |
| tool_view (nngxx::ctx_view c) | |
| Construct a tool_view from an nng_ctx view. | |
| tool_view (nngxx::socket_view s) | |
| Construct a tool_view from an nng_socket view. | |
| const std::type_info & | type () const |
| Get the std::type_info of the underlying variant. | |
| const char * | who () const |
| Get a string that represents the type of the underlying variant. | |
| int | id () const |
| The id of the underlying variant. | |
| auto | format_to (std::format_context &ctx) const -> decltype(ctx.out()) |
| Formatter for debugging purpose. | |
Represents an nng_socket or nng_ctx view.
Definition at line 47 of file tool_view.h.
|
inlineexplicit |
Construct a tool_view from an nng_ctx view.
Definition at line 51 of file tool_view.h.
|
inlineexplicit |
Construct a tool_view from an nng_socket view.
Definition at line 57 of file tool_view.h.
|
inline |
Formatter for debugging purpose.
Definition at line 78 of file tool_view.h.
References who().

|
inline |
The id of the underlying variant.
Definition at line 72 of file tool_view.h.
Referenced by pars::net::context_registry::of().

|
inline |
Get the std::type_info of the underlying variant.
Definition at line 63 of file tool_view.h.
Referenced by pars::net::context_registry::of().

|
inline |
Get a string that represents the type of the underlying variant.
Definition at line 69 of file tool_view.h.
Referenced by format_to().
