|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
#include <result_types.h>

Public Member Functions | |
| Result (const T &val) | |
| Result (T &&val) | |
| Result (const simple_error &err) | |
| bool | is_ok () const |
| bool | is_err () const |
| const T & | value () const |
| T & | value () |
| const simple_error & | error () const |
| operator bool () const | |
Static Public Member Functions | |
| template<typename U = T> | |
| static Result< T > | ok (U &&value) |
| static Result< T > | err (const simple_error &error) |
| static Result< T > | err (int code, const std::string &message, const std::string &source="") |
Private Attributes | |
| std::variant< T, simple_error > | data_ |
Definition at line 128 of file result_types.h.
|
inline |
Definition at line 130 of file result_types.h.
Referenced by kcenon::network::Result< T >::err(), kcenon::network::Result< T >::err(), and kcenon::network::Result< T >::ok().

|
inline |
Definition at line 131 of file result_types.h.
|
inline |
Definition at line 132 of file result_types.h.
|
inlinestatic |
Definition at line 140 of file result_types.h.
References kcenon::network::Result< T >::error(), and kcenon::network::Result< T >::Result().
Referenced by kcenon::network::core::session_handle::send(), and kcenon::network::core::session_model< SessionType >::send().


|
inlinestatic |
Definition at line 144 of file result_types.h.
References kcenon::network::message, and kcenon::network::Result< T >::Result().

|
inline |
Definition at line 154 of file result_types.h.
References kcenon::network::Result< T >::data_.
Referenced by kcenon::network::Result< T >::err().

|
inline |
Definition at line 149 of file result_types.h.
References kcenon::network::Result< T >::is_ok().
Referenced by kcenon::network::protocols::grpc::service_registry::impl::configure_server().


|
inline |
Definition at line 148 of file result_types.h.
References kcenon::network::Result< T >::data_.
Referenced by kcenon::network::Result< T >::is_err(), and kcenon::network::Result< T >::operator bool().

|
inlinestatic |
Definition at line 136 of file result_types.h.
References kcenon::network::Result< T >::Result(), and kcenon::network::Result< T >::value().
Referenced by kcenon::network::core::session_model< SessionType >::send().


|
inline |
Definition at line 156 of file result_types.h.
References kcenon::network::Result< T >::is_ok().

|
inline |
|
inline |
Definition at line 151 of file result_types.h.
References kcenon::network::Result< T >::data_.
Referenced by kcenon::network::Result< T >::ok().

|
private |
Definition at line 159 of file result_types.h.
Referenced by kcenon::network::Result< T >::error(), kcenon::network::Result< T >::is_ok(), kcenon::network::Result< T >::value(), and kcenon::network::Result< T >::value().